Results 1 to 4 of 4

Thread: [RESOLVED] Spawning an mdi form!

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Posts
    219

    Resolved [RESOLVED] Spawning an mdi form!

    Ok i have an mdi form i want to do when i click a menu button it makes a new form exactly like form1 and i mean like the functions gui everything i think this might be complicated im not really sure i would appreciate the help i couldnt find anything on search lol Thank you!

  2. #2
    Frenzied Member Andrew G's Avatar
    Join Date
    Nov 2005
    Location
    Sydney
    Posts
    1,587

    Re: Spawning an mdi form!

    VB Code:
    1. 'In MDI
    2.  
    3. Dim FromNum As Long
    4.  
    5. Private Sub CmdNewForm_Click()
    6.     Dim NewFrm As Form1
    7.     FromNum = FromNum + 1
    8.     Set NewFrm = New Form1
    9.     NewFrm.Show
    10. End Sub

    Edit: Technically Formnum is not needed, but you can pass it to the tag property so you can keep track of forms.
    Last edited by Andrew G; Apr 10th, 2006 at 12:10 AM.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Posts
    219

    Re: Spawning an mdi form!

    thank you for the reply =) my friend also taught me this way
    VB Code:
    1. Dim x As New Form1
    2. x.Show
    well thanks for your help!

  4. #4
    Frenzied Member Andrew G's Avatar
    Join Date
    Nov 2005
    Location
    Sydney
    Posts
    1,587

    Re: [RESOLVED] Spawning an mdi form!

    Good point . I didn't realise you could do that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width