469,090 Members | 1,158 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,090 developers. It's quick & easy.

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 3990
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by jkarp2 | last post: by
1 post views Thread by Ashish Shridharan | last post: by
2 posts views Thread by Tippy G | last post: by
2 posts views Thread by Craig | last post: by
4 posts views Thread by GatorBait | last post: by
3 posts views Thread by Steve Long | last post: by
7 posts views Thread by H. Williams | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by kglaser89 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.