Results 1 to 7 of 7

Thread: Form load error?

  1. #1

    Thread Starter
    Hyperactive Member Petergotchi's Avatar
    Join Date
    Jan 2002
    Location
    Dendermonde - Belgium
    Posts
    267

    Form load error?

    If I use
    Code:
    form1.show
    to show a first form it goes well...

    When I try a little further in the code to call a second form with
    Code:
    form2.show
    he doesn't know the method 'show'...
    He only knows
    Code:
    Form2.showwhatsthis
    *** did I do wrong?
    Anyone familiar with this problem?
    Kind Regards,

    Pieter

    PS: If you found someone's answer helpful, please be so kind to rate that person.
    Thanks.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Might sound like a dumb question, but is Form2 actually a form, or is it some control?

  3. #3
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132
    I was going to ask the same thing - couldn't resist.

  4. #4
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670
    Right click on form2 in the code and click on DEFINITION.
    This should lead you to the top line of the form's code.. however, if it doesn't it should lead you to the VARIABLE or OBJECT that has foolishly been called "form2"... !!
    'Buzby'
    Visual Basic Developer
    "I'm moving to Theory. Everything works there."

  5. #5

    Thread Starter
    Hyperactive Member Petergotchi's Avatar
    Join Date
    Jan 2002
    Location
    Dendermonde - Belgium
    Posts
    267
    I'm sure it's a form
    Attached Images Attached Images  
    Kind Regards,

    Pieter

    PS: If you found someone's answer helpful, please be so kind to rate that person.
    Thanks.

  6. #6
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670
    Have you tried my suggestion? Right click on form2 in your code, and click on DEFINITION.

    I'm guessing someone has DIMmed a variable as FORM2 in the module or form the error occurs in..
    'Buzby'
    Visual Basic Developer
    "I'm moving to Theory. Everything works there."

  7. #7

    Thread Starter
    Hyperactive Member Petergotchi's Avatar
    Join Date
    Jan 2002
    Location
    Dendermonde - Belgium
    Posts
    267
    Ok... Doh!!!!
    I had a frame called frmProducten, while I just added another form called the same...

    Thx to all! ;-)
    Kind Regards,

    Pieter

    PS: If you found someone's answer helpful, please be so kind to rate that person.
    Thanks.

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