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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I display a "Please Wait" message ?

Status
Not open for further replies.

Siggy19

Technical User
Jan 6, 2003
141
US
I know this is dumb.

I want to display a "Please wait" message in the middle of the screen while saving a big document in Excel. When the save is finished, I want the message to vanish without any intervention by the user.

How do I do this ??? MsgBox demands a response and when I try putting a label in a seperate window, with the save in the newwindow.Activate event, it does not display the label !
 
With regard to the label not displaying... try putting DoEvents before the code that does the save.
 

Code:
Private Sub Save()
  dim fWait As New formWait
  
  DoEvents()

  fWait.Show()
  SaveToExcel
  fWait.Close
End Sub

The formWait has a label on it with text e.g "Please wait, saving to Excel...
 
Sorry i thought it was on vb.NET ...

Code:
Private Sub Save()
  Load frmWait
  
  DoEvents()

  frmWait.Show
  SaveToExcel
  Unload frmWait
End Sub

The frmWait has a label on it with text e.g "Please wait, saving to Excel...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top