Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Msgbox and vbInformation

Status
Not open for further replies.

susheel777

Programmer
Apr 28, 2003
17
0
0
SG
Hi..if I use a Msgbox with the button specified as vbInformation, will my program execution be paused until I click on the OK button? Or does the program keep running anyway?
 
Here's code to quickly check your query"
-----------------------
Dim X As Integer

For X = 1 To 5
MsgBox "Some message", vbInformation
Next
-----------------------

You will see that only one messagebox appears until pressed. This wil happen 5 times.

So the answer is :It is not so much the vbInformation property that means anything, but rather the fact the the msgbox function uses a modal form which will halt execution until it is acknowledged.

Graham

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top