|
-
Apr 8th, 2002, 02:29 PM
#1
Thread Starter
Hyperactive Member
Mouse pointer change
Does anyone have an example of changing a mouse pointer to an hourglass while a dataset is being fetched?
A cynic knows the price of everything but the value of nothing.
-
Apr 8th, 2002, 03:24 PM
#2
Fanatic Member
I use
VB Code:
[formname].activeform.cursor = cursors.waitcursor
it behaves a little different. I'd experiemnt from there.
HTH
-
Aug 5th, 2004, 08:51 AM
#3
Hyperactive Member
Save/change/restore mousepointer?
In VB6, when I'm going to do something that may take a while, I always do the following:
VB Code:
Dim MousePtr as Integer
MousePtr = Screen.MousePointer ' Save current setting
Screen.MousePointer = vbHourglass
(do stuff)
Screen.MousePointer = MousePtr ' Restore to previous setting
This works like a charm and ensures that if I have nested changes I don't go setting the pointer back to default prematurely.
How can I get and save the current cursor state in .NET and then restore that when I'm done playing?
Thanks, DaveBo
"The wise man doesn't know all the answers, but he knows where to find them."
VBForums is one place, but for the really important stuff ... here's a clue 1Tim3:15
-
Aug 6th, 2004, 09:31 AM
#4
Hyperactive Member
I figured it out
VB Code:
Dim MousePtr As Object
MousePtr = Me.ActiveForm.Cursor ' Save current MousePointer
Me.ActiveForm.Cursor = Cursors.WaitCursor ' Set HourGlass cursor
' do stuff
Me.ActiveForm.Cursor = MousePtr ' Restore previous MousePointer
"The wise man doesn't know all the answers, but he knows where to find them."
VBForums is one place, but for the really important stuff ... here's a clue 1Tim3:15
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|