main form is shown undeliberately
Posted on 1998-04-29
I have a VB form that calls a procedure from
another class to verify whether an input in
a textbox of that form is in the allowed range
of input values. Now if the focus is lost in that
textbox the Lost event handling procedure in the
form calls this other procedure from the mentioned
class. This procedure in turn calls MsgBox when the
input value range is violated to inform the user.
However, before this message box comes up the main
form is shown and over this appears the message box.
When OK is clicked the main form disappears again.
Is there a way to suppress the main form showing up
each time the MsgBox is shown? It does not make any
sense to have the main form shown in this occasion.