Results 1 to 4 of 4

Thread: Procedure in VB to create form inside another form

  1. #1
    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..

  2. #2
    Join Date
    Feb 2008
    Posts
    1,852

    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.

  3. #3
    Join Date
    Jan 2008
    Posts
    1,521

    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..

  4. #4
    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.

Similar Threads

  1. How to control spam form inside in MS Exchange 2007?
    By Giaan in forum Networking & Security
    Replies: 5
    Last Post: 31-10-2011, 12:20 PM
  2. Replies: 5
    Last Post: 25-05-2011, 10:21 PM
  3. Replies: 2
    Last Post: 02-05-2011, 07:06 AM
  4. Application Procedure of IIT JEE Online Form
    By Biloxi in forum Education Career and Job Discussions
    Replies: 1
    Last Post: 11-11-2010, 02:25 PM
  5. How to create Form within Form in VB
    By StephanieRice in forum Software Development
    Replies: 2
    Last Post: 20-04-2009, 01:40 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,642,161.15856 seconds with 17 queries