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
|
stickleprojects Level: Moderator Registered: 09-09-2002 Posts: 901
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)