We help IT Professionals succeed at work.

GroupBox not displaying at Load

I am new to writing in vb.net, sorry if this is simplistic

I have two groupboxes, on the form load procedure I have groupbox1.visible = false and groupbox2.visible = true, nothing displays on the form load event.

If both are visible they both display and if groupbox1 is visible and groupbox2 is not visible it displays correctly.

Can anyone help?
Thank you

Private Sub frmCAMISUpdateAppointee_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'Setting up look of GUI
        Me.grpInputFile.Visible = False
        Me.pBar.Visible = False
        Me.btnRun.Enabled = False
        Me.grpInputYear.Focus()
        Me.grpInputYear.Visible = True

Open in new window

Comment
Watch Question

Is groupbox2 inside of groupbox1?  An easy way to check is to view the tab order.

Author

Commented:
No, they are not inside each other

Author

Commented:
I was able to look in the vb.designer file for my project and because they were placed to close to each other were connect with each other

Explore More ContentExplore courses, solutions, and other research materials related to this topic.