In my Winform app, i have a Drawing panel.
when i move my cursor within the drawing panel, cursor should be changed to pencil
how can i do this ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no Cursor called ‘Pencil’ within Cursor Class,See the complete cursor listing here :
Complete Cursor Listing
However You can try Custom Cursors
Visual Studio allows you to create cursor (.cur) files. A cursor file is a bitmap file with .cur extension. To create a cursor file, right click on your project and select Add New Item menu item. After that, select Cursor File from the items. This action will add a default Cursor1.cur file
Once a cursor file is added, you will land in bitmap editor where you can change the bitmap using drawing tools as you can see
Now copy Cursor1.cur file to your Debug or Release folder where your executable file is stored.
Once a file is saved, we can create a cursor from the cursor file using following code snippet.
C# Code:
VB.NET Code: