|
-
Nov 15th, 2005, 09:32 PM
#1
Thread Starter
Banned
-
Nov 15th, 2005, 09:34 PM
#2
Re: change cursor
You can use an Icon or a Cursor file. Just set the MousePointer property of your Form to 99 - Custom and load a cursor or an icon file in the MouseIcon property.
-
Nov 15th, 2005, 09:54 PM
#3
Re: change cursor
It only stays in effect while your app is running, so it's not malware
-
Nov 15th, 2005, 10:05 PM
#4
Thread Starter
Banned
Re: change cursor
ok, so do you know how to do it?
-
Nov 15th, 2005, 10:34 PM
#5
Thread Starter
Banned
Re: change cursor
but i want it to just load a JPG or BMP, if possible. If its not, how would i make a cursor file or an icon file? besides using paint
-
Nov 15th, 2005, 10:48 PM
#6
Re: change cursor
You can use either Visual C++ or Microangelo to create icons.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Nov 15th, 2005, 10:52 PM
#7
Re: change cursor
I bought Microangelo when I needed icon files. It is a great program.
-
Nov 15th, 2005, 10:57 PM
#8
Re: change cursor
Animated cursors are the best.
-
Nov 16th, 2005, 05:23 PM
#9
Thread Starter
Banned
Re: change cursor
well i made a cursor with microangelo trial, and now how do i set it on VB? i only want it if the program is open. is it possible to make it so i dont have the cursor when i send the program to people? and one last thing: if i make it the form pointer, wont it only be when the mouse is over the form?
-
Nov 16th, 2005, 05:27 PM
#10
Thread Starter
Banned
Re: change cursor
also, the cursor has a big white box around it, how do i get rid of it?
-
Nov 16th, 2005, 05:36 PM
#11
Re: change cursor
Microangelo has a color named screen which will be transparent.
-
Nov 16th, 2005, 05:48 PM
#12
Re: change cursor
Since a cursor is a shared resource you shouldn't change the cursor for other applications. It also depends on what cursor type you want to change, since there are many cursor resources loaded by Windows (normally 14).
However if you are interested there are a couple of different API functions you can use to change the cursor. SetCursor is one (which is what VB use internally when you use a custom MouseIcon) and this function changes the current used cursor to use your cursor even for other applications (VB changes back the cursor when the mouse leave the window borders). SetSystemCursor is another function that is the same as opening the Mouse control panel applet and physically change one of the cursors. This is a system wide change that will destroy the earlier used cursor (not recommended).
-
Nov 16th, 2005, 06:56 PM
#13
Thread Starter
Banned
Re: change cursor
so there is no other way?
-
Nov 18th, 2005, 03:30 PM
#14
Thread Starter
Banned
Re: change cursor
any other way to do it at all?
-
Nov 18th, 2005, 08:23 PM
#15
Re: change cursor
Windows allows you to change the cursor using the functions I mentioned above. You can of course hide the actual cursor and monitor the cursor position to move and show whatever image you want. But if you want to change the real cursor that is used you can not do it in any other way then the ways Windows allows you to...
-
Nov 19th, 2005, 11:48 AM
#16
Thread Starter
Banned
Re: change cursor
yes, how would i do what you mentioned above?
-
Nov 19th, 2005, 11:52 AM
#17
Re: change cursor
 Originally Posted by GarrettDori
any other way to do it at all?
Yep there sure is:
http://www.vbforums.com/showthread.p...42#post2248742
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|