DD&C Home Home / Home Office Small-Medium Business Large Enterprise Client Services Downloads Specials Shopping  
DD&C Support
Computer Support, Help and Information
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

VB.Net Form Help

 
Post new topic   Reply to topic    DD&C Support Forum Index -> Visual Basic
View previous topic :: View next topic  
Author Message
arstacey



Joined: 24 Apr 2006
Posts: 1

PostPosted: Mon Apr 24, 2006 7:23 pm    Post subject: VB.Net Form Help Reply with quote

I have created a form (frmMain) which will be the main form for my program when it launches (it will launch Full Screen). I have created a few other forms which will launch from a toolbar I have added to the main form (I will call one of the child forms frmContacts to use in my example).

Both forms launch fine. The problem is that when I press the button to launch frmContacts, it is not attached to the frmMain. If I minimize frmMain, frmContacts will still be up on screen. Likewise, If both are open and if I click anywhere on frmMain, it becomes the focus and frmContacts fall behind it. It is like even though I launched it with a button in frmMain, it is a second program - not a part of frmMain.

I would like to somehow set frmContacts to be locked to a specific position on frmMain just like any other program and only work within frmMain, but I cannot figure out how to do so.

By the way, I am using VB.Net from Visual Studio 2003.
Back to top
View user's profile Send private message
Dave
Site Admin


Joined: 13 Jan 2006
Posts: 83

PostPosted: Tue Apr 25, 2006 1:21 am    Post subject: Reply with quote

All you need here is an MDI form. Add an MDI Form to your project, then add a regular form and set it's MDIChild property to true. In the load event of the MDI form make your regular form visible (form1.visible=true). MDI form's are containers for other forms.
_________________
-Dave
http://spyware.dugancom.com
http://www.articlemotron.com
http://homeimprovement.divinfo.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    DD&C Support Forum Index -> Visual Basic All times are GMT + 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
DD&C Support  


Powered by phpBB © 2001, 2005 phpBB Group