[RESOLVED] disclosure triangle control in VB
How can I hide certain controls based on user selection?
Is there a control that I can use? When the user would click on this control hidden part of the form is going to show. There is a control in real basic called disclosure triangle, I am trying to find the equivalent control in VB. Does anybody know of such control?
Re: disclosure triangle control in VB
Re: disclosure triangle control in VB
You could do that from the Click event of any contrtol that has a click event such as a command button.
VB Code:
Private Sub Command1_Click()
Textbox1.Visible = False
End Sub
Re: disclosure triangle control in VB
i know about visible property. Is there something more advanced? So the form would expand when the user would click on that control, but when the form loads initially it would be colapsed.
Re: disclosure triangle control in VB
In the click event you could just set the new dimensions of the form or slowly expand to the new diemensions via a timer.
Re: disclosure triangle control in VB
you could make the form1.height and form1.width different when a user clicks a button
Re: disclosure triangle control in VB
Re: disclosure triangle control in VB
Now that we've helped you, you can help us by pulling down the Thread Tools menu and clicking the Mark Thread Resolved button which will let everyone know that you have your answer.