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

creating a busy(wait) cursor during a process? 1

Status
Not open for further replies.

lminmei

Programmer
Feb 1, 2000
111
0
0
US
how do i create a busy (wait) cursor while i retrieve data from a sql database? Because the query might take a while so i need to put some kind of wait cursor in.
Any help would be appreciated. Thanks!
-Derek
 
Your form should have a Cursor property, and you assign a value from the Cursors collection to change the cursor.
Code:
Dim SaveCursor As Cursor = MyForm.Cursor
MyForm.Cursor = Cursors.WaitCursor

' Run query here

MyForm.Cursor = SaveCursor

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top