Friday, May 21, 2010

In visual basic programming, how can i insert a picture for a cursor, instead of the default pointer?

I don't want a typical cursor for my program in Visual Basic. I've seen people upload other pictures, such as cross-hairs to symbolize a gun's aim instead of a cursor. How do I do this?

In visual basic programming, how can i insert a picture for a cursor, instead of the default pointer?
http://www.wilsonc.demon.co.uk/d10resour...


http://www.thefreecountry.com/programmin...








I think you need to make a dll that contains the custom cursor.


http://support.microsoft.com/kb/76666


"How to Create and Use a Custom Cursor in Visual Basic; Win SDK


View products that this article applies to.


Article ID : 76666


Last Review : December 12, 2003


Revision : 2.0


This article was previously published under Q76666


On This Page





SUMMARY





MORE INFORMATION





Important


SUMMARY


Using a graphics editor, the Microsoft Windows Software Development Kit (SDK), and the Microsoft C compiler, you can create a dynamic-link library (DLL) containing mouse cursors that can be used in a Microsoft Visual Basic application. By making calls to the Windows API functions LoadLibrary, LoadCursor, SetClassWord, and GetFocus, you can display a custom cursor from within a Visual Basic application. Below are the steps necessary to a create a custom cursor and a Visual Basic application to use this custom cursor. "
Reply:Hi there .. I've found a wonderful site that shows you step by step in how to create a resource file using the Add-in Manager tool and the codes to put into your project. I've used it a few times and it works wonderfully. I find Microsoft sites quite overwhelming sometimes .. hehs





Hope this helps


No comments:

Post a Comment