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

aogusafaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
aogusafaAuthor Commented:
No, they are not inside each other
0
aogusafaAuthor 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
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.