Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 16-11-2009
Member
 
Join Date: Jan 2009
Posts: 35
Procedure in VB to create form inside another form

Hi all,

I am beginner in the Visual Basics programming(VB) field. I have one confusion about form creation.

Is there any way in VB to create form inside another from? If yes then please provide the procedure for the same in detail description.

Your help will be appreciated..
Reply With Quote
  #2  
Old 16-11-2009
Member
 
Join Date: Feb 2008
Posts: 1,848
Re: Procedure in VB to create form inside another form

In VB you cannot create a form inside forms. But you can display one form inside another using the Multiple Document Interface(MDI).
For doing same you will have to create one new form, give it name. Then that add another one new from the project menu and click on the MDI form option.After that your MDI form is ready. Now select the properties of the form that you added earlier and select the MDI Child property of the form to true.

After above procedure the code create one menu item in the MDI form and provide the below code to the menu click event:

load <form_name>
<form_name>.Top = 50
<form_name>.Left = 50
<form_name>.Show

This will code will display the child form inside the main MDI Form.
Reply With Quote
  #3  
Old 16-11-2009
Member
 
Join Date: Jan 2008
Posts: 1,515
Re: Procedure in VB to create form inside another form

Hi friend,

I think you are trying to do the think which is not valid in the VB.
You can't create a form inside another form. But if you use MDI you can able to display the content of another from but you can not create a form inside MDI also.

I hope this will solve all your doubts..
Reply With Quote
  #4  
Old 16-11-2009
Member
 
Join Date: Apr 2008
Posts: 1,948
Re: Procedure in VB to create form inside another form

According to me MDI form in VB will help you in this problem.
We use MDI to allow user to work on more than on forms at one time.
To make normal form as a MDI child you have change the child property
of the form to the true.So doing this procedure you can able to show more than one form in the single MDI form.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Procedure in VB to create form inside another form"
Thread Thread Starter Forum Replies Last Post
How to control spam form inside in MS Exchange 2007? Giaan Networking & Security 5 31-10-2011 12:20 PM
Google Chrome is opening in basic HTML form instead of the Standard form Beatrix Technology & Internet 5 25-05-2011 10:21 PM
how to get items in a form to auto-resize with the form using visual basic deansmylie93 Software Development 2 02-05-2011 07:06 AM
Application Procedure of IIT JEE Online Form Biloxi Education Career and Job Discussions 1 11-11-2010 02:25 PM
How to create Form within Form in VB StephanieRice Software Development 2 20-04-2009 01:40 PM


All times are GMT +5.5. The time now is 01:15 AM.