Results 1 to 8 of 8

Thread: [RESOLVED] disclosure triangle control in VB

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2006
    Posts
    25

    Resolved [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?

  2. #2
    Fanatic Member
    Join Date
    May 2005
    Posts
    528

    Re: disclosure triangle control in VB

    .visible = false?

  3. #3
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    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:
    1. Private Sub Command1_Click()
    2.  
    3.     Textbox1.Visible = False
    4.  
    5. End Sub

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Feb 2006
    Posts
    25

    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.

  5. #5

  6. #6
    Fanatic Member
    Join Date
    May 2005
    Posts
    528

    Re: disclosure triangle control in VB

    you could make the form1.height and form1.width different when a user clicks a button

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Feb 2006
    Posts
    25

    Re: disclosure triangle control in VB

    that works, thanks

  8. #8
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width