Click here to Skip to main content
15,911,646 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to use the master form in VB.Net
Posted
Comments
[no name] 7-Sep-13 5:40am    
Did you talking about MDI Form in Destop application or Web Master Page

This url is having a good explanation

Beginner's Tutorial on Master Pages in ASP.NET[^]
 
Share this answer
 
We can create master-detail forms in vb .net application or any other application. Master form is the main form and detail form is the sub form in the applications. There will be some connecting information between the master form and detail form.

Eg: In a Sales bill, Master Form and Detail form are there. Persons who buy the products, Bill/Invoice NO, Bill Date are come under Master Form. These details are only once required for that bill. Product Name, Quantity, Rate, Amount, etc coming under the detail for. These two forms can be connected with the bill No.

We can write programs in VB.net to accomodate the master-detail form

Please read my recent article and give your comments & Rating
Chat Application in PHP

with regards,

Sunil
 
Share this answer
 
In VB.NET Master Form is nothing but the MDI Container.
To Make Form as MDI Container Set it's IsMDIContainer Property True.
To make another Form as Child of MDI Form(Master Form) Set it's MDIParent Property to MDI Form(Master Form).

See Following Code:
VB
'here FrmMasterFrom is Name of Master From & FrmChildForm is Name of Child Form.
FrmMasterForm.IsMDIContainer = True
FrmChildForm.MDIParent = Form1
FrmChildForm.Show()

For More Information See follwoing Links :
http://msdn.microsoft.com/en-us/library/ms973874.aspx[^]
http://vb.net-informations.com/gui/vb.net-mdi-form.htm[^]
I hope it will help you. :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900