bugs >> MousePointer Property

by Waldy » Wed, 22 Nov 2006 00:54:08 GMT

Hi there,
does MouseCursor = vbHourGlass not work under Windows XP? For
some reason, this is having no effect on my machine.




bugs >> MousePointer Property

by Bob O`Bob » Wed, 22 Nov 2006 03:28:37 GMT





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
--



bugs >> MousePointer Property

by Waldy » Fri, 24 Nov 2006 22:57:39 GMT

> "MouseCursor" would have to be something defined in your own code,

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.




MousePointer Property

by Robert Morley » Fri, 24 Nov 2006 23:56:10 GMT

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







MousePointer Property

by Waldy » Sat, 25 Nov 2006 00:03:40 GMT

Thanks for that. It is a COM .DLL, so that may explain it. I'll try the
DoEvents call.









Similar Threads

1. Mousepointer property

2. Check if Mousepointer is over a region

"Stefan Uhlemann" < XXXX@XXXXX.COM > schrieb
> Hi,
>
> how can i check if the mousepointer is over a System.Drawing.Region
> (from graphicspath).
> In vb6 i used the API Call "PtInRegion" - Is ther something like
> that in VB 2005??
>
> btw:
> The region is not a rectangle.

Untested: Try the Region's IsVisible function.

Depending on the coordinate system, you may have to use the Control's 
PointToClient/PointToScreen methods additionally, and you have to take the 
offset of the Control's origin and the Region's origin into account (if not 
equal)


Armin 

3. Changing mousepointer?

4. MousePointer

Can anyone tell me how to set the MousePointer to the 
hourglass cursor during a long calculation in Microsoft 
Project?

Thanks

5. hide mousepointer?

6. change mousepointer

Is it possible to change the mousepointer using a stand-alone
VBScript? 

kind regards,
arno

7. Hide mousepointer?

8. Mousepointer on modal forms

>     Private Sub Command1_Click()
>      Form1.Enabled =False
         Form2.Show 1
>     End Sub

In the Form2_Unload
>      Form1.Enabled =True



"Bob Azad" < XXXX@XXXXX.COM > schreef in bericht
news:008d01c34690$c1ac8610$ XXXX@XXXXX.COM ...
> Hello everyone:
>
> I have a bit of problem with the mousepointer when it
> comes with modal forms.  Here is what I want to do.
>
> I have 2 forms, Form1 and Form2.
> On form1 I have a command button, that open form2 modally
> and the event for this command button is:
>     Private Sub Command1_Click()
>         Form2.Show 1
>     End Sub
>
> Here is my question.  Now that both forms are open, how
> can I make the mousepointer to be equal to 0 (default),
> when the mouse is over form2 and equal to 11 (hourglass)
> when it is everywhere else?  I basically am doing the same
> thing that a msgbox does.
>
> Your help is greatly appreciated.  If you have any sample
> code, it would be great.
>
> Thanks;
>
>
> Bob
>