mdi form help

china

Member
Joined
Jan 23, 2007
Messages
5
Programming Experience
Beginner
Im new to VB and am working on a project that requires it to run within an mdi form, but im unsure as to how to have the forms loaded up into the mdi when the project runs, and how to navigate through the forms from there..

Sorry for such a basic question, but if i could get guidance it would be great, thanks.
 
hi

the best way to navigate through an mdi form is using a MenuStrip control. it will be in the toolbox. in regards to showing the form, simply instanciate a new form like you normally would, but with a couple of changes...

VB.NET:
Dim f as new frmYourForm
 
with f
           f.mdiparent = Me
           f.Startposition = [SIZE=2]FormStartPosition.CenterParent
[/SIZE]           f.show
end with

good luck! :)
 
Last edited:
Back
Top