Results 1 to 4 of 4

Thread: New Instance and such... [resolved]

  1. #1

    Thread Starter
    Frenzied Member thegreatone's Avatar
    Join Date
    Aug 2003
    Location
    Oslo, Norway. Mhz:4800 x12
    Posts
    1,333

    Resolved New Instance and such... [resolved]

    Hey everyone, i've been working on my app for about 45mins already and i have a considerable amount done in comparison to my usual work-rate.
    However, when trying to tell whether to open a new ionstance of a form, or stick with form1 i get error 450 with the following code :

    VB Code:
    1. If NewInst = vbChecked Then
    2. frm = New Form1
    3. Else:
    4. frm = Form1
    5. End If

    How would i go about making this work correctly ?
    Last edited by thegreatone; Jun 28th, 2005 at 10:22 AM.
    Zeegnahtuer?

  2. #2
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: New Instance and such...

    You must do

    Dim frm As Form1

    Set frm = New Form1

  3. #3
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: New Instance and such...

    of course, after that you load the new instance with

    frm.Show

  4. #4

    Thread Starter
    Frenzied Member thegreatone's Avatar
    Join Date
    Aug 2003
    Location
    Oslo, Norway. Mhz:4800 x12
    Posts
    1,333

    Re: New Instance and such...

    Cheers Baja, it was that simple, why didn't i think that way in the first place... i blame the heat

    +Rep
    Zeegnahtuer?

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