By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,730 Members | 1,153 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,730 IT Pros & Developers. It's quick & easy.

Form Dock Fill Problem wtih Form Activated...

P: n/a
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

Nov 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.