none
GroupBox expanded RRS feed

  • Question

  • Hi all,

    after I select a dropdown item, an unrelated groupbox expanded. How can I find the code that pulls off the event.

    thanks,

    SZ  

    Tuesday, October 9, 2018 8:20 PM

Answers

  • Hi,

    I think you can use the visible property of GroupBox.

    Public Class Form1
        Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    
            GroupBox1.Visible = IIf(GroupBox1.Visible = True, False, True)
        End Sub
    End Class

    Best Regards,

    Alex



    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by sesquipedalian Tuesday, October 23, 2018 6:29 PM
    Wednesday, October 10, 2018 5:38 AM

All replies

  • Hi

    Are you talking about a COMBOBOX rather than a GroupBox? A GroupBox can not be expanded!


    Regards Les, Livingston, Scotland

    Tuesday, October 9, 2018 8:33 PM
  • Xmmm... I would guess - you have to fix line 42? 

    Sincerely, Highly skilled coding monkey.

    Tuesday, October 9, 2018 8:54 PM
  • If you are in search of an expandable GroupBox see the following

    http://www.vbforums.com/showthread.php?576403-Expandable-GroupBox


    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.
    VB Forums - moderator
    profile for Karen Payne on Stack Exchange, a network of free, community-driven Q&A sites

    Tuesday, October 9, 2018 9:38 PM
    Moderator
  • Hi,

    I think you can use the visible property of GroupBox.

    Public Class Form1
        Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    
            GroupBox1.Visible = IIf(GroupBox1.Visible = True, False, True)
        End Sub
    End Class

    Best Regards,

    Alex



    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by sesquipedalian Tuesday, October 23, 2018 6:29 PM
    Wednesday, October 10, 2018 5:38 AM