Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Visual Basic error 401

Status
Not open for further replies.
Joined
Mar 1, 2001
Messages
2
Location
GB
I have designed a VB project for my HNC course consisting of an MDI form containing a toolbar and several Child forms using
VB 6. I checked the program within the visual basic environment and found no problems. When I made an EXE FILE of the program I found an error appeared on the forms that displayed either message boxes or input boxes to the user.
The error was “401 Can’t show non-modal form when modal form is displayed”. The MDI form uses a select case method to show the selected child form. If the search form(child) for example is selected, then the form is displayed which contains a list box of possible search criteria. When the user selects a choice and presses the command button to search, the user is presented with a input box to enter their search data, and this is where the above error is displayed. As I understand it MDI & Child forms are non-modal and input / message boxes are modal so I assume that when the input box(modal) appears the MDI & search form(non-modal) which are still showing cause the problem,so how can I get around this problem???

Please Help
 
a child form can not set Form.Show 1 (that is wrong) Eric De Decker
vbg.be@vbgroup.nl

Licence And Copy Protection AxtiveX.

Download Demo version on my Site:
Promotions before 02/28/2001 (free source codebook),visite my site
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top