is it possible to change the mouse cursor to a Bmp, JPG or GIF?
would this be considered "malware"? :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: if so delete this thread
thanks
Printable View
is it possible to change the mouse cursor to a Bmp, JPG or GIF?
would this be considered "malware"? :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: if so delete this thread
thanks
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.
It only stays in effect while your app is running, so it's not malware :)
ok, so do you know how to do it?
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
You can use either Visual C++ or Microangelo to create icons.
I bought Microangelo when I needed icon files. It is a great program.
Animated cursors are the best. :)
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?
also, the cursor has a big white box around it, how do i get rid of it?
Microangelo has a color named screen which will be transparent.
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).
so there is no other way?
any other way to do it at all?
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...
yes, how would i do what you mentioned above?
Yep there sure is:Quote:
Originally Posted by GarrettDori
http://www.vbforums.com/showthread.p...42#post2248742