MsgBox

anat
07-21-2003, 07:15 AM
Every time a msgbox appears, the UI disappears and the msgbox is shown with the code behind it. It doesn't look good. How do I prevent it?

Iceplug
07-21-2003, 07:20 AM
Where are you showing the msgbox at in your code and what does it look like?

evilhomer
07-21-2003, 07:27 AM
I have this happen sometimes when I'm debugging my code in the IDE. I assume you're doing the same thing? If so, don't worry, once you compile the code and run your exe/dll/whatever, it won't happen.

If you want to prevent it from happening during debugging, I think minimizing the IDE after you run your project will help.

anat
07-21-2003, 07:33 AM
Where are you showing the msgbox at in your code and what does it look like?

I put in a subroutine, from the code:

If rsSCourses![cyear] > 0 Then
MsgBox ("you already have this course"), , "duplicate"
ElseIf (rsSCourses![pyear] > 0) And (rsSCourses![grade] >= 55) Then
MsgBox ("xxxxx"), , "xxxx"
End If
ElseIf (RSCourses![Day] = rscTime![Day]) And (RSCourses![Time] = rscTime![Time]) Then
MsgBox ("xxxx"), , "course overlap"
Else...

I think it has to do with the fact I have a form_paint routine which draws a student's curriculum and it cannot display the msg box on it.
anat

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum