[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.drawing

Changing Cursor not working.

Brad Shook

11/24/2004 8:06:00 PM

I am trying to change the cursor in a vb windows program with the following
code.
Me.Cursor.Current = Cursors.Hand

It is not working.

Does anyone have any suggestions?

Thanks,

Brad Shook


3 Answers

Bob Powell

11/25/2004 10:17:00 AM

0

I can only assume that where you think the cursor is isn't where it really
is. Maybe you should be thinking along the lines of
Me.MyControl.Cursor.Current=Corsors.Hand.

from the post you posted later I assume this is the picturebox you're
fiddling with so I'm definitely right.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tips...

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/f...

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.





"Brad Shook" <bshook@echd.org.removeme> wrote in message
news:%23Dg0BEm0EHA.1400@TK2MSFTNGP11.phx.gbl...
> I am trying to change the cursor in a vb windows program with the
following
> code.
> Me.Cursor.Current = Cursors.Hand
>
> It is not working.
>
> Does anyone have any suggestions?
>
> Thanks,
>
> Brad Shook
>
>


monroe

11/25/2004 10:22:00 AM

0

Hi Brad,

"Brad Shook" <bshook@echd.org.removeme> wrote in message news:<#Dg0BEm0EHA.1400@TK2MSFTNGP11.phx.gbl>...
> I am trying to change the cursor in a vb windows program with the following
> code.
> Me.Cursor.Current = Cursors.Hand
>
> It is not working.
>
> Does anyone have any suggestions?
>
> Thanks,
>
> Brad Shook

I never had a problem with simply

Me.Cursor = Cursors.Hand

Brad Shook

11/29/2004 4:22:00 PM

0

The problem was the .Current
when I changed the code to:

Me.Cursor = Cursors.Hand

It worked.
Thanks for everyones help!!

"Brad Shook" <bshook@echd.org.removeme> wrote in message
news:%23Dg0BEm0EHA.1400@TK2MSFTNGP11.phx.gbl...
> I am trying to change the cursor in a vb windows program with the
following
> code.
> Me.Cursor.Current = Cursors.Hand
>
> It is not working.
>
> Does anyone have any suggestions?
>
> Thanks,
>
> Brad Shook
>
>