More info button

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Denis Carnier
    New Member
    • Jan 2012
    • 1

    More info button

    Hey guys!

    Was wondering how to make a button that when you click it, the window will show more information.

    You commonly see it at Error windows with the "Details" window that adds height to the window and displays some extra information...

    Thanks alot!
  • Joseph Martell
    Recognized Expert New Member
    • Jan 2010
    • 198

    #2
    The height property of a window is not set in stone. In your button click event handler you need to add code that updates the window's height:

    Code:
    me.Height = 100
    or whatever your desired height is.

    As for the data displayed on the window after expansion, you have 2 options:
    1. Once the window is expanded, you could add the components to the form in your code. This works well if you want to display different controls for different scenarios. It does add complexity because you are positioning and sizing controls by trial and error more than anything.
    2. You could just design your form in its expanded form and then set the height so that the extra controls are not visible when the form first shows. This is useful if you are always going to have the same controls, but their content will change. That way all you have to do is update content and not dynamically add controls.

    Comment

    Working...