Results 1 to 2 of 2

Thread: cannot show the form! Error '400' & '401'

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2001
    Location
    Hong Kong
    Posts
    50

    Arrow cannot show the form! Error '400' & '401'

    hi everybody..

    In the MAIN page, it contains many command buttons for the users to enter each section of the system. and of cos the form of each section has a QUIT button for back to MAIN page....I declared ALL the forms------> .show vbmodal, when I press QUIT to back to MAIN page, it prompts"run time error '400': 'form already displayed, can't show modally.' so I remove 'vbmodal' to continue and run again...then it prompts "run time error '401' : 'can't show non-modal form when modal form is displayed.' so what can I do?? Really annoying me NOW!!

    Please help...in urgent!

    Post or reply here if you've got some ideas.

    Thanks a lot.
    Regards,

    Mandy

  2. #2
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Well ...

    Are you displaying your MAIN form modally, too?

    If you are showing other forms modally, just try to unload them in the QUIT button's click event. Since the MAIN form is already there behind the sub form, the user will automatically return to the MAIN form.

    .
    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

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