Hi I got the following environment.......Form1 and inside Form1, got
Panel1....
I also got another new Form ...named Form2...
Form1, Panel1
Form2
Inside Form1, I click a button to show Form2 using the following method...
Private Sub ShowForm(ByVal form)
form.TopLevel = False
form.Parent = Me.Panel1
form.Dock = DockStyle.Fill
form.Show()
End Sub
as a result my Form2 will dock inside Panel1 of Form1........
I write coding under Form2 Activated.....all coding under Form2 Activated
will not function when it is dock to Panel1 of Form1.
if I call Form2 simply using dim frm as new form2, frm.show, then the
Form2Activated will be working perfecty...but when it is Dock to Panel1,
then it is not working...
Could someone guide me how to trigger the Form2 Activated when my Form2 is
dock to Panel1 of Form1.
Thank you very much..
Regards
PK