How to create a MDIParent form in windows vb.net

Posted by Rrana under VB.NET on 7/26/2012 | Points: 10 | Views : 13634 | Status : [Member] | Replies : 4
Hi,

How to create a MDIParent form in windows vb.net and how to call the child form from MDIParent form.

Can any one please send me the detailed code..


Thanks in advance

Sucharitha Goud
Bank Of America..



Responses

Posted by: Malashree on: 7/31/2012 [Member] Starter | Points: 25

Up
0
Down
Hello Sucharitha,
Good morning.
Creating MDI Parent form and calling MDIchild form is very easy.
Follow the steps mentioned below:
1) Create the Windows application with form name as 'form1'.
2) change the 'IsMDIcontainer' property of form1 to 'True'.
3) Now Add one more form to the same project by right click on the project name in Solution Explorer and name it as form2.
4) Add this code whenever u want to call the childform . '(in the event when u need to call the child form from parent form).
Dim newchildform as new form2
newchildform.MdiParent=me ' (here 'me' is form1 where u r writing this code)
newchildform.show()
5) Now u can run this project by clicking F5.

Regards,
Malashree

Rrana, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: CGN007 on: 7/31/2012 [Member] Silver | Points: 25

Up
0
Down
Please refer this
http://msdn.microsoft.com/en-us/library/xyhh2e7e

Rrana, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: CGN007 on: 7/31/2012 [Member] Silver | Points: 25

Up
0
Down
Creating MDI Child Forms
http://msdn.microsoft.com/en-us/library/aa984329%28v=vs.71%29.aspx

Rrana, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: CGN007 on: 7/31/2012 [Member] Silver | Points: 25

Up
0
Down
Mark as answer if it helps...,That motivates...!!!

Rrana, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response