Results 1 to 3 of 3

Thread: Multiple instance of forms

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2001
    Posts
    8

    Question Multiple instance of forms

    Hello,

    say I have 2 forums and a command button.
    When I click the command button the second form loads. But when I click it again nothing happens (because the second form is loaded).

    I want mutiple instances of the form to load when I click the command button! Right now I am using the code

    frmBlah.show

    Please help

  2. #2
    VB Code:
    1. Dim frmNewForm As New Form
    2. Load frmNewForm
    3. frmNewForm.Show

  3. #3
    Addicted Member reznor's Avatar
    Join Date
    May 2001
    Location
    Netherlands
    Posts
    151
    try this:
    VB Code:
    1. Private Sub Command1_Click()
    2.     Dim frm As Form
    3.     Set frm = New Form1
    4.     frm.Show
    5. End Sub
    Good luck!
    Rick
    "Computers are incredibly fast, accurate and stupid. Human beings are incredibly slow, inaccurate and brilliant. Together they are powerful beyond imagination." - Albert Einstein

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