473,378 Members | 1,389 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,378 software developers and data experts.

Howto - change cursors in a Windows App

et al,

I've tried to find out on the 'net how to do this but can't seem to find it
anywhere.

How can I changed the cursors that show up in a windows application to be
specific cursors that I deem? I've seen this done on some web sites, but
never really looked at the code (have since lost the bookmarks to those
websites). They change the default cursor in the web app and change it
again when you move it over a something (ie. control). And it was their
own custom cursors.

I haven't found where to do this. If anyone knows of a link where I can
find out how to do this, please share.

thx.
Jul 17 '05 #1
3 4114
What Windows app? Your VB app? Just set the form's mousepointer to 99,
custom, and set the mouseicon to a cursor/picture you want. If you want to
toggle the cursor you can use something like:

Private Sub Check1_Click()

If Check1.Value = vbChecked Then
Me.MousePointer = vbCustom
Else
Me.MousePointer = vbDefault
End If
End Sub
--

Randy Birch
MVP Visual Basic
http://vbnet.mvps.org/
Please respond only to the newsgroups so all can benefit.
"John Doe" <al****@in.style> wrote in message
news:HnVQc.3295$yh.456@fed1read05...
: et al,
:
: I've tried to find out on the 'net how to do this but can't seem to find
it
: anywhere.
:
: How can I changed the cursors that show up in a windows application to be
: specific cursors that I deem? I've seen this done on some web sites, but
: never really looked at the code (have since lost the bookmarks to those
: websites). They change the default cursor in the web app and change it
: again when you move it over a something (ie. control). And it was their
: own custom cursors.
:
: I haven't found where to do this. If anyone knows of a link where I can
: find out how to do this, please share.
:
: thx.
:
:

Jul 17 '05 #2
"John Doe" <al****@in.style> wrote in message
news:HnVQc.3295$yh.456@fed1read05...
et al,

I've tried to find out on the 'net how to do this but can't seem to find it anywhere.

How can I changed the cursors that show up in a windows application to be
specific cursors that I deem? I've seen this done on some web sites, but
never really looked at the code (have since lost the bookmarks to those
websites). They change the default cursor in the web app and change it
again when you move it over a something (ie. control). And it was their
own custom cursors.

I haven't found where to do this. If anyone knows of a link where I can
find out how to do this, please share.

thx.


You are mixing apples and oranges. Web site methods for doing this and VB
App methods will be very different. If your VB app is running on a web
server and handing out web pages, or if you are simply doing html pages, it
will be along this idea since you must output the HTML to make the browser
cooperate:
http://www.fontstuff.com/frontpage/fptut15.htm

If it is a VB App then the answer from Randy is likely more appropriate.

Doug B.

Jul 17 '05 #3
Wow! This was exactly what I was looking for. Thanks for the great link!

The only question left is when does the new cursor file get downloaded?
when the move over the area or when the page loads? for most of my users,
this won't be a problem, but a do have a few dial-up where this could be an
issue.

thx.
"USENETSERVER" <ye**@right.com> wrote in message
news:Ou*******************@fe47.usenetserver.com.. .
"John Doe" <al****@in.style> wrote in message
news:HnVQc.3295$yh.456@fed1read05...
et al,

I've tried to find out on the 'net how to do this but can't seem to find it
anywhere.

How can I changed the cursors that show up in a windows application to be specific cursors that I deem? I've seen this done on some web sites, but never really looked at the code (have since lost the bookmarks to those
websites). They change the default cursor in the web app and change it
again when you move it over a something (ie. control). And it was their own custom cursors.

I haven't found where to do this. If anyone knows of a link where I can
find out how to do this, please share.

thx.


You are mixing apples and oranges. Web site methods for doing this and VB
App methods will be very different. If your VB app is running on a web
server and handing out web pages, or if you are simply doing html pages,

it will be along this idea since you must output the HTML to make the browser
cooperate:
http://www.fontstuff.com/frontpage/fptut15.htm

If it is a VB App then the answer from Randy is likely more appropriate.

Doug B.

Jul 17 '05 #4

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

Similar topics

9
by: jkarp2 | last post by:
Ok. I just switched to VB.net, and well, everything seemed find. .NET took care of buffering, and some nice DirectX features. The code formating is usless, just a pain to get it way I like it. ...
1
by: Ashish Shridharan | last post by:
Hi All, How do we change the mouse pointer (for example : from a arrow to a hand pointer) on the click of a button, in a windows form ?? Thanks in advance Ashish Shridharan
2
by: Tippy G | last post by:
Can someone please give me an example of how to change the mousepointer to an hourglass or whatever other constant in VB.NET? I need to do it from a start-up module (VB6 days would have been...
2
by: Craig | last post by:
I'm trying to do this within a control I've created: Cursor.Current = Cursors.WaitCursor; During the initialization of the parent form, my control gets added to the form, and while the control...
10
by: Just Me | last post by:
Does Me.Cursor.Current=Cursors.WaitCursor set the current property of Me.Cursor to Cursors.WaitCursor And Me.Cursor.Current=Cursors.Default set the Me.Current property to something (default)...
4
by: GatorBait | last post by:
Hi, I have created a class library that I call from within my program using late binding. The class library contains a form and I allow the user to do different actions on the form that is part of...
3
by: Steve Long | last post by:
I hope this isn't too stupid of a question but I'm looking for a way to change an item in a listview control when the mouse moves over it. I'd like to change its color and underline it for a...
7
by: H. Williams | last post by:
I know the .Net Cursor class doesn't work with color cursors. So I'm currently using the LoadCursorFromFile API with reflection to set color cursors: here is my code: public static extern...
6
by: Jan Heppen | last post by:
Is it posible to set something so that when my vb.net (visual studio 2005, framework 2.0) application is busy that the mouse pointer change into a hourglass ? Or do i have to set everywhere...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.