borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Runtime error 429)Next Topic (Getting Compile Error using Database Object in VBA) New Topic New Poll Post Reply
AndreaVB Forum : VBA (Access, Excel, Word, ...) : run-time error 400
Poster Message
ana_gurlz87
Level: Protégé

Registered: 12-11-2007
Posts: 4

icon run-time error 400

I've made a VB6 application that use an excel file.
I've run the program, and when i've been click the exit or back button, run-time errror 400 will be displayed. Form already displayed; can't show modally.. How can i make to solve the problem? Anyone can help me..
Thanks..


____________________________
cutie pie

13-11-2007 at 02:14 AM
View Profile Send Email to User Show All Posts | Quote Reply
stickleprojects
Level: Moderator


Registered: 09-09-2002
Posts: 901
icon Re: run-time error 400

Yeah
Dont use the phrase "MyForm.Show"

use instead:

Dim frm as MyForm
frm.Show vbmodal

VB is whining that a form is already onscreen and waiting for the user to click something, but your code is asking it to show the same form again (ie. form1.show)


____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)

17-11-2007 at 11:26 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VBA (Access, Excel, Word, ...) : run-time error 400
Previous Topic (Runtime error 429)Next Topic (Getting Compile Error using Database Object in VBA) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder