Discussion:
MousePointer Property
(too old to reply)
Waldy
2006-11-21 16:54:08 UTC
Permalink
Hi there,
does MouseCursor = vbHourGlass not work under Windows XP? For
some reason, this is having no effect on my machine.
Bob O`Bob
2006-11-21 19:28:37 UTC
Permalink
Post by Waldy
Hi there,
does MouseCursor = vbHourGlass not work under Windows XP? For
some reason, this is having no effect on my machine.
You haven't supplied sufficient information about what you
actually do which has "no effect"

"MouseCursor" would have to be something defined in your own code,
so we probably can't help you there.

MousePointer is a property of certain objects, but if that's it, then
/what/ object are you accessing to attempt to set it?



Bob
--
Waldy
2006-11-24 14:57:39 UTC
Permalink
Post by Bob O`Bob
"MouseCursor" would have to be something defined in your own code,
so we probably can't help you there.
MousePointer is a property of certain objects, but if that's it, then
/what/ object are you accessing to attempt to set it?
That was a typo. I am trying to set the pointer to an hourglass while I'm
loading a ListView on a modal dialog. I've tried Screen.MousePointer and
Form.MousePointer but neither call changes the pointer.
Robert Morley
2006-11-24 15:56:10 UTC
Permalink
I've only ever used Screen.MousePointer, but I remember having a couple of
issues with it. First of all, if you're using Screen.MousePointer in a DLL,
it might not work at all. I created a VB DLL and used it in Access, and it
wouldn't do anything, though creating the exact same module directly within
Access itself worked fine.

The other thing I've seen happen is that you change the MousePointer, but
immediately start another complex task and the system doesn't have time to
change it visibly. Try adding a DoEvents right after you change the
MousePointer and see if that solves the problem.


Good luck,
Rob
Post by Waldy
Post by Bob O`Bob
"MouseCursor" would have to be something defined in your own code,
so we probably can't help you there.
MousePointer is a property of certain objects, but if that's it, then
/what/ object are you accessing to attempt to set it?
That was a typo. I am trying to set the pointer to an hourglass while I'm
loading a ListView on a modal dialog. I've tried Screen.MousePointer and
Form.MousePointer but neither call changes the pointer.
Waldy
2006-11-24 16:03:40 UTC
Permalink
Thanks for that. It is a COM .DLL, so that may explain it. I'll try the
DoEvents call.
Post by Robert Morley
I've only ever used Screen.MousePointer, but I remember having a couple of
issues with it. First of all, if you're using Screen.MousePointer in a
DLL, it might not work at all. I created a VB DLL and used it in Access,
and it wouldn't do anything, though creating the exact same module
directly within Access itself worked fine.
The other thing I've seen happen is that you change the MousePointer, but
immediately start another complex task and the system doesn't have time to
change it visibly. Try adding a DoEvents right after you change the
MousePointer and see if that solves the problem.
Good luck,
Rob
Post by Waldy
Post by Bob O`Bob
"MouseCursor" would have to be something defined in your own code,
so we probably can't help you there.
MousePointer is a property of certain objects, but if that's it, then
/what/ object are you accessing to attempt to set it?
That was a typo. I am trying to set the pointer to an hourglass while
I'm loading a ListView on a modal dialog. I've tried Screen.MousePointer
and Form.MousePointer but neither call changes the pointer.
Loading...