473,322 Members | 1,778 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Making/using icon as custom cursor

How can I use my image as the current cursor?

I know I can do this
System.Windows.Forms.Cursor.Current =
System.Windows.Forms.Cursors.WaitCursor;

But I want to make my graphic the cursor, not one of the standard ones.
Nov 16 '05 #1
3 7263
Search for UxTheme.dll at codeproject.com
"Douglas Curran" <Do***********@discussions.microsoft.com> wrote in message
news:9D**********************************@microsof t.com...
How can I use my image as the current cursor?

I know I can do this
System.Windows.Forms.Cursor.Current =
System.Windows.Forms.Cursors.WaitCursor;

But I want to make my graphic the cursor, not one of the standard ones.

Nov 16 '05 #2
Are you saying I have to make an XP theme then use this DLL wrapper and this
solution would only work in XP?

"Nick Wilton" wrote:
Search for UxTheme.dll at codeproject.com
"Douglas Curran" <Do***********@discussions.microsoft.com> wrote in message
news:9D**********************************@microsof t.com...
How can I use my image as the current cursor?

I know I can do this
System.Windows.Forms.Cursor.Current =
System.Windows.Forms.Cursors.WaitCursor;

But I want to make my graphic the cursor, not one of the standard ones.


Nov 16 '05 #3

Cursor test = new Cursor("graphicfilename");
Cursor = test;

"Douglas Curran" wrote:
Are you saying I have to make an XP theme then use this DLL wrapper and this
solution would only work in XP?

"Nick Wilton" wrote:
Search for UxTheme.dll at codeproject.com
"Douglas Curran" <Do***********@discussions.microsoft.com> wrote in message
news:9D**********************************@microsof t.com...
How can I use my image as the current cursor?

I know I can do this
System.Windows.Forms.Cursor.Current =
System.Windows.Forms.Cursors.WaitCursor;

But I want to make my graphic the cursor, not one of the standard ones.


Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Tor Inge Rislaa | last post by:
How to change the cursor icon I want to change the cursor icon from arrow to finger when the cursor move over a button, and back to the arrow when the cursor leave the button. (as with Hyperlink...
0
by: Rud | last post by:
Hi, I've searched all over the place but couldn't find the answer... I have a set of nice cursor files (and icon files too) that I want to use in my application. But what is the best approach...
11
by: Garrett | last post by:
I'm fairly new to VB .NET and programming in general, and I want to give my program its own icon without it being a separate file. I have the icon as part of the project, and its Build Action is...
2
by: Peter Stojkovic | last post by:
I have programmed a window with an icon. Now I want, that this window has NO Icon. But I can not remove the icon within VS.NET. I can only select an other ICON ! How can I remove the icon...
13
by: Lou | last post by:
if I add a new item (Solution Items) to my project and its an icon(.ico), how can I reference that file when I am coding, Do I have to also add it to an image control, I don't want the file to be...
6
by: Erick | last post by:
I've created a class called Procs and a collection class called Processes which uses a hastable object to store the Procs. Now i want to enumerate with the "For each" to extract all the Procs in...
1
by: jayanthigk2004 | last post by:
Folks, I need a working code to do the following or something similar. I have two icons in the screen. One to indicate right (a tick mark) and one to indicate wrong (a cross). If the user...
13
by: Prisoner at War | last post by:
I know about the * * style="cursor: pointer; cursor: hand;" * * attribute of the <imgtag, but is there a way JavaScript can "load in" one's own graphic for such events?? How? TIA!
3
by: MarkS | last post by:
Is there any way to get rid of that ugly blown-up blue window icon that appears on all of my VB.net executables? I would rather just have the system's default application icon, like in C# and C++....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.