Saturday 4 June 2011

How to add your own mouse cursor / pointer in Visual Basic 2008?

Does anyone have examples on how to change the mouse cursor in a program within Visual Basic 2008?





I saw one example, but the problem seem to be, it was indicated that .NET can only accept B/W and now color ones.








Thanks





|||There may be a few ways of doing this.





First, you may be able to add a custom cursor to the list of cursors, and specify that cursor in the form%26#039;s properties (in form designer, go to properties page with the form selected... there%26#039;s a %26quot;cursor%26quot; property there.)





Otherwise, you may be able to disable the cursor completely and put an image control on the form... and every time the MouseMove event happens on the form, handle it and position that image at the mouse location... simulating a cursor.