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

Change Cursor in .NET????

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.

But here comes my problem. How do I change the Cursor image???. This
is getting really anoying, and well I have a deadline in two days. lol

So if you have some idea....send it along.

In VB6 this was easy....but I've wasted a day trying to find this and
I can't lose much more time...

Thanks in advance....even if nothing happens
Jul 17 '05 #1
9 17015
Hi,

If you mean the mouse pointer, it's Me.Cursor =
System.Windows.Forms.Cursors.AppStarting or whichever you want.
You can load custom cursors with the System.Windows.Forms.Cursor namespace.
_______________________
The Grim Reaper

P.S. This is a VB6 newsgroup - please post to
microsoft.public.dotnet.languages.vb

<jk****@yahoo.com> wrote in message
news:f7**************************@posting.google.c om...
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.

But here comes my problem. How do I change the Cursor image???. This
is getting really anoying, and well I have a deadline in two days. lol

So if you have some idea....send it along.

In VB6 this was easy....but I've wasted a day trying to find this and
I can't lose much more time...

Thanks in advance....even if nothing happens

Jul 17 '05 #2
Thanks, going to try that now. I was obsessing over
Properties...overlooked coding in the namespace.

Hi,

If you mean the mouse pointer, it's Me.Cursor =
System.Windows.Forms.Cursors.AppStarting or whichever you want.
You can load custom cursors with the System.Windows.Forms.Cursor namespace.

Jul 17 '05 #3
Hey,

I have had the same problem for a very long time. Do you think you
could give me an example of using this?

Thanks,
jk****@yahoo.com wrote in message news:<f7**************************@posting.google. com>...
Thanks, going to try that now. I was obsessing over
Properties...overlooked coding in the namespace.

Hi,

If you mean the mouse pointer, it's Me.Cursor =
System.Windows.Forms.Cursors.AppStarting or whichever you want.
You can load custom cursors with the System.Windows.Forms.Cursor namespace.

Jul 17 '05 #4
Hi,

I've had this same problem for a long time now. Could you give an
example of how to use this code?

Thanks,
Jul 17 '05 #5
If you don't understand what I've already said, can you please expand on the
problem... I'd consider this a very very simple thing, unless I'm
misunderstanding the question!!??
______________________________
The Grim Reaper

"Anagnos" <fr***********@yahoo.com> wrote in message
news:57**************************@posting.google.c om...
Hey,

I have had the same problem for a very long time. Do you think you
could give me an example of using this?

Thanks,
jk****@yahoo.com wrote in message

news:<f7**************************@posting.google. com>...
Thanks, going to try that now. I was obsessing over
Properties...overlooked coding in the namespace.

Hi,

If you mean the mouse pointer, it's Me.Cursor =
System.Windows.Forms.Cursors.AppStarting or whichever you want.
You can load custom cursors with the System.Windows.Forms.Cursor

namespace.
Jul 17 '05 #6
Sorry,

What I mean is can you give me a complete line of code. That would work.

Thanks,
"The Grim Reaper" <gr*********@btopenworld.com> wrote in message news:<ca**********@sparta.btinternet.com>...
If you don't understand what I've already said, can you please expand on the
problem... I'd consider this a very very simple thing, unless I'm
misunderstanding the question!!??
______________________________
The Grim Reaper

"Anagnos" <fr***********@yahoo.com> wrote in message
news:57**************************@posting.google.c om...
Hey,

I have had the same problem for a very long time. Do you think you
could give me an example of using this?

Thanks,
jk****@yahoo.com wrote in message

news:<f7**************************@posting.google. com>...
Thanks, going to try that now. I was obsessing over
Properties...overlooked coding in the namespace.
> Hi,
>
> If you mean the mouse pointer, it's Me.Cursor =
> System.Windows.Forms.Cursors.AppStarting or whichever you want.
> You can load custom cursors with the System.Windows.Forms.Cursor

namespace.

Jul 17 '05 #7
Sorry,

What I mean is can you give me a complete line of code. That would work.

Thanks,
"The Grim Reaper" <gr*********@btopenworld.com> wrote in message news:<ca**********@sparta.btinternet.com>...
If you don't understand what I've already said, can you please expand on the
problem... I'd consider this a very very simple thing, unless I'm
misunderstanding the question!!??
______________________________
The Grim Reaper

"Anagnos" <fr***********@yahoo.com> wrote in message
news:57**************************@posting.google.c om...
Hey,

I have had the same problem for a very long time. Do you think you
could give me an example of using this?

Thanks,
jk****@yahoo.com wrote in message

news:<f7**************************@posting.google. com>...
Thanks, going to try that now. I was obsessing over
Properties...overlooked coding in the namespace.
> Hi,
>
> If you mean the mouse pointer, it's Me.Cursor =
> System.Windows.Forms.Cursors.AppStarting or whichever you want.
> You can load custom cursors with the System.Windows.Forms.Cursor

namespace.

Jul 17 '05 #8
Option Explicit On
Option Strict On
Friend Class frmTest
Inherits System.Windows.Forms.Form
//// Default form code provided by the IDE \\\\
Private Sub frmTest_Load(ByVal pSender As System.Object, ByVal pArgs As
System.EventArgs) Handles MyBase.Load
' Set the cursor to the web style hover over link hand
Me.Cursor = Cursors.Hand
End Sub
End Class

I can't make it any simpler!!!
_______________________________________________
The Grim Reaper
"Anagnos" <fr***********@yahoo.com> wrote in message
news:57**************************@posting.google.c om...
Sorry,

What I mean is can you give me a complete line of code. That would work.

Thanks,
"The Grim Reaper" <gr*********@btopenworld.com> wrote in message

news:<ca**********@sparta.btinternet.com>...
If you don't understand what I've already said, can you please expand on the problem... I'd consider this a very very simple thing, unless I'm
misunderstanding the question!!??
______________________________
The Grim Reaper

"Anagnos" <fr***********@yahoo.com> wrote in message
news:57**************************@posting.google.c om...
Hey,

I have had the same problem for a very long time. Do you think you
could give me an example of using this?

Thanks,
jk****@yahoo.com wrote in message

news:<f7**************************@posting.google. com>...
> Thanks, going to try that now. I was obsessing over
> Properties...overlooked coding in the namespace.
>
>
> > Hi,
> >
> > If you mean the mouse pointer, it's Me.Cursor =
> > System.Windows.Forms.Cursors.AppStarting or whichever you want.
> > You can load custom cursors with the System.Windows.Forms.Cursor

namespace.

Jul 17 '05 #9
This thread is starting to get long, so I thought I'd chime in with a
reminder along the lines of the one in your first posting...

Almost everybody in this newsgroup is using VB6 or lower. While you may
get a stray answer to VB.NET questions here, you should ask them in
newsgroups devoted exclusively to .NET programming. Look for newsgroups
with either the word "dotnet" or "vsnet" in their name.

For the microsoft news server, try these newsgroups...

microsoft.public.dotnet.general
microsoft.public.dotnet.languages.vb
microsoft.public.vsnet.general

There are some others, but these should get you started.

Rick - MVP


"The Grim Reaper" <gr*********@btopenworld.com> wrote in message
news:ca**********@sparta.btinternet.com...
Option Explicit On
Option Strict On
Friend Class frmTest
Inherits System.Windows.Forms.Form
//// Default form code provided by the IDE \\\\
Private Sub frmTest_Load(ByVal pSender As System.Object, ByVal pArgs As System.EventArgs) Handles MyBase.Load
' Set the cursor to the web style hover over link hand
Me.Cursor = Cursors.Hand
End Sub
End Class

I can't make it any simpler!!!
_______________________________________________
The Grim Reaper
"Anagnos" <fr***********@yahoo.com> wrote in message
news:57**************************@posting.google.c om...
Sorry,

What I mean is can you give me a complete line of code. That would work.

Thanks,
"The Grim Reaper" <gr*********@btopenworld.com> wrote in message news:<ca**********@sparta.btinternet.com>... If you don't understand what I've already said, can you please expand on the
problem... I'd consider this a very very simple thing, unless I'm
misunderstanding the question!!??
______________________________
The Grim Reaper

"Anagnos" <fr***********@yahoo.com> wrote in message
news:57**************************@posting.google.c om...
> Hey,
>
> I have had the same problem for a very long time. Do you think

you > could give me an example of using this?
>
> Thanks,
>
>
> jk****@yahoo.com wrote in message
news:<f7**************************@posting.google. com>...
> > Thanks, going to try that now. I was obsessing over
> > Properties...overlooked coding in the namespace.
> >
> >
> > > Hi,
> > >
> > > If you mean the mouse pointer, it's Me.Cursor =
> > > System.Windows.Forms.Cursors.AppStarting or whichever you want. > > > You can load custom cursors with the System.Windows.Forms.Cursor namespace.



Jul 17 '05 #10

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

Similar topics

3
by: Csaba2000 | last post by:
I have set onmousedown to change the cursor, but this setting is ignored (IE 5.5; NN 6.1 on Win 2K Pro) until the mouse is either moved or the mouse button is released. On Opera 7.01, the setting...
1
by: Tee | last post by:
Hi, From my main form, I am executing another application using System.Diagnostics.Process.Start. The application has its own window displaying when the applicaiton is run. I want to change...
9
by: Christian Blackburn | last post by:
Hi Gang, In VB6 is was relatively easy to change the pointer, but now I don't even see that as a property for any objects. Can somebody tell me how to do that in .NET? Thanks in Advance,...
4
by: Maria | last post by:
Hello ! I try to change the cursor on the form like this : Me.Cursor = Cursors.WaitCursor 'reading from database 'showing file Me.Cursor = Cursors.Arrow
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...
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...
1
by: nikki.farrah | last post by:
Hi all, this is my first time posting so any help is appreciated! I am doing a simple AJAX request to our server, and I would like the cursor style changed to 'wait' when the user clicks a button...
9
by: KDawg44 | last post by:
Hi, I am brand new to Python. In learning anything, I find it useful to actually try to write a useful program to try to tackle an actual problem. I have a syslog server and I would like to...
1
by: Frank Swarbrick | last post by:
We're trying to take advantage of the new ROW CHANGE TIMESTAMP option. Here is a simple table: CREATE TABLE "ACCTASGN"."NUMBER_STATUS" ( "STATUS_CODE" CHAR(1) NOT NULL , "STATUS_DESCRIPTION"...
1
by: bibhukdas | last post by:
Hi All, Just to elaborate on the issue. The requirement is to handle this in javascript 1. User clicks on a button 2. Change the cursor style (We are using document.body.style.cursor="wait") 3....
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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.