Hello..
I have created two GroupBoxes...
GroupBox1 having a Button1....
then GroupBox2 having Button2...
i have placed(Position) GroupBox2 exactly on GroupBox1....
(when these are placed seperately; at totally different locations it works fine..)
i want to navigate among these GroupBoxes when i click on respective Button...
say i have clicked on Button2 of GroupBox2 then it should get invisible and GroupBox1 should be displayed...and vice versa ...
when i run it initially GroupBox2 is displayed and clicking on Button2 it gets invisible and GroupBox1 gets displayed...No problem till here...but after this when i click Button1 GroupBox2 doesnt display and even GroupBox1 gets invisible....what am i doing wrong....
Code:
Public Class Form2
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
GroupBox2.Visible = True
GroupBox1.Visible = False
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
GroupBox1.Visible = True
GroupBox2.Visible = False
End Sub
End Class
Any help will be helpful to me...
Thanks & Regards
Sweety