run time error 401 -- cant show non-modal form while a modal form is display

i got a run time error 401 -- cant show non-modal form while a modal form is display

the error fired when a msgbox loaded with deafult parameters and another form is activate and includes a timer control

this error occurs only in 1 computer  while another 5 computers works fine.

the environment is:
win-95
vb-6 SP3


adlAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
vindevogelConnect With a Mentor Commented:
You've got your form as a modal form (form.show vbModal)
In that form, you want to display another messagebox ...

That's not allowed by Windows.


You must either show your form not modal and then popup the messagebox.

But, I guess that you put it modal to ensure that the user clicks one of the buttons on the form ....
You'll have to check that off with a global variable (that is changed when the user clicks one of the buttons) and you can put your form "always on top" to simulate the modal effect.  There's enough code on this site on how to display a form always on top.
0
 
ArkCommented:
Can you provide code?

Cheers
0
 
adlAuthor Commented:
thanks for the comments but
i dont have any modal forms

also on other computers tested i dont have this problem
0
 
vindevogelCommented:
run time error 401 -- cant show non-modal form while a modal form is display

with no modal forms, this is a curious run time error.
0
 
vindevogelCommented:
Why did you grade this C ?
I consider this a blame on my record !
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.