Quote:
> I am trying to make an aplication where I create a selfmade MyMsgbox
> so what I did is for example two forms.. one holding the execution and
> the other for the created MyMsgbox.. .. I create this message box to
> inform about an error. Ok.. Executing the application when I do Load
> the form that holds the MyMsgbox it does not stay there and whaits
> till I press ok in the mymsgbox form... it just returns back from
> where I loaded it previously. the question is :
> How can I make that a form keeps the execution flow of the program
> till I do detect an event in this form !! That is to say... How can I
> emulate a normal VB Msgbox ?
Use the show method with vbModal constant: frmMyMsgBox.Show vbModal
If using VB3, vbModal can be substituted with a nonzero value (1).
Peter Larsson