473,503 Members | 1,772 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cursor

I have a mdi app. I need to change the cursor when I click on certain
button on a form that I made into a toolbar. I tried to use cursor.current.
But the cursor won't show. if I change the form cursor it will work over
the form. I need it to stay with the same cursor over all objects.

Any ideas of what I am doing wrong here?

TIA
Nov 20 '05 #1
5 1956
I'm confused...
Do you want to set the cursor of a button?
If so set the cursor property in the properties window. Or do it at
runtime.
button1.cursor=cursors.wait

HTH,

Shane

"Lespaul36" <le*******@none.net> wrote in message
news:e4**************@TK2MSFTNGP11.phx.gbl...
I have a mdi app. I need to change the cursor when I click on certain
button on a form that I made into a toolbar. I tried to use cursor.current. But the cursor won't show. if I change the form cursor it will work over
the form. I need it to stay with the same cursor over all objects.

Any ideas of what I am doing wrong here?

TIA

Nov 20 '05 #2
Sorry for the confusion.
No, what I need to do it change the screen cursor when a button is clicked.
something like:

private sub button_click()
cursor.current=cursors.wait
end sub

but it doesn't change the cursor if do it that way.
"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:uo**************@TK2MSFTNGP12.phx.gbl...
I'm confused...
Do you want to set the cursor of a button?
If so set the cursor property in the properties window. Or do it at
runtime.
button1.cursor=cursors.wait

HTH,

Shane

"Lespaul36" <le*******@none.net> wrote in message
news:e4**************@TK2MSFTNGP11.phx.gbl...
I have a mdi app. I need to change the cursor when I click on certain
button on a form that I made into a toolbar. I tried to use

cursor.current.
But the cursor won't show. if I change the form cursor it will work over the form. I need it to stay with the same cursor over all objects.

Any ideas of what I am doing wrong here?

TIA


Nov 20 '05 #3
something like this might work for you.
private sub button1.click()
Me.Button1.Cursor = System.Windows.Forms.Cursors.WaitCursor
end sub

"Lespaul36" <le*******@none.net> wrote in message
news:Ok*************@tk2msftngp13.phx.gbl...
Sorry for the confusion.
No, what I need to do it change the screen cursor when a button is clicked. something like:

private sub button_click()
cursor.current=cursors.wait
end sub

but it doesn't change the cursor if do it that way.
"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:uo**************@TK2MSFTNGP12.phx.gbl...
I'm confused...
Do you want to set the cursor of a button?
If so set the cursor property in the properties window. Or do it at
runtime.
button1.cursor=cursors.wait

HTH,

Shane

"Lespaul36" <le*******@none.net> wrote in message
news:e4**************@TK2MSFTNGP11.phx.gbl...
I have a mdi app. I need to change the cursor when I click on certain
button on a form that I made into a toolbar. I tried to use

cursor.current.
But the cursor won't show. if I change the form cursor it will work over the form. I need it to stay with the same cursor over all objects.

Any ideas of what I am doing wrong here?

TIA



Nov 20 '05 #4
Does this change the form's cursor?

private sub button_click()
me.cursor=cursors.wait
end sub

is that what you need?

of course to change just for button
button.cursor=cursors.wait
"Lespaul36" <le*******@none.net> wrote in message
news:Ok*************@tk2msftngp13.phx.gbl...
Sorry for the confusion.
No, what I need to do it change the screen cursor when a button is clicked. something like:

private sub button_click()
cursor.current=cursors.wait
end sub

but it doesn't change the cursor if do it that way.
"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:uo**************@TK2MSFTNGP12.phx.gbl...
I'm confused...
Do you want to set the cursor of a button?
If so set the cursor property in the properties window. Or do it at
runtime.
button1.cursor=cursors.wait

HTH,

Shane

"Lespaul36" <le*******@none.net> wrote in message
news:e4**************@TK2MSFTNGP11.phx.gbl...
I have a mdi app. I need to change the cursor when I click on certain
button on a form that I made into a toolbar. I tried to use

cursor.current.
But the cursor won't show. if I change the form cursor it will work over the form. I need it to stay with the same cursor over all objects.

Any ideas of what I am doing wrong here?

TIA



Nov 20 '05 #5
Thanks for all the answers. The line me.parent.form.cursor=cursors.wait
seened to work.

The big problem was going over a collection of pictureboxes that I had the
borders set to fixedsingle on to look like a grid. The cursor change on the
border.

After trying to draw lines with the graphics class..I ended up putting them
all in a picturebox about 1 pixel from eachother and making the container
backcolor black. Looks like a gid line. One of those 5 min solutions that
took all day. Trying to make the simple hard.

"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:Or*************@TK2MSFTNGP12.phx.gbl...
Does this change the form's cursor?

private sub button_click()
me.cursor=cursors.wait
end sub

is that what you need?

of course to change just for button
button.cursor=cursors.wait
"Lespaul36" <le*******@none.net> wrote in message
news:Ok*************@tk2msftngp13.phx.gbl...
Sorry for the confusion.
No, what I need to do it change the screen cursor when a button is

clicked.
something like:

private sub button_click()
cursor.current=cursors.wait
end sub

but it doesn't change the cursor if do it that way.
"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:uo**************@TK2MSFTNGP12.phx.gbl...
I'm confused...
Do you want to set the cursor of a button?
If so set the cursor property in the properties window. Or do it at
runtime.
button1.cursor=cursors.wait

HTH,

Shane

"Lespaul36" <le*******@none.net> wrote in message
news:e4**************@TK2MSFTNGP11.phx.gbl...
> I have a mdi app. I need to change the cursor when I click on certain > button on a form that I made into a toolbar. I tried to use
cursor.current.
> But the cursor won't show. if I change the form cursor it will work

over
> the form. I need it to stay with the same cursor over all objects.
>
> Any ideas of what I am doing wrong here?
>
> TIA
>
>



Nov 20 '05 #6

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

Similar topics

3
17290
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...
5
14420
by: Vlad Simionescu | last post by:
Hello I'm trying to let my Windows Form application perform a lengthy operation while displaying a progress bar in a modal dialog window; the dialog has a cancel button. The dialog is displayed...
2
1766
by: dave | last post by:
In my form Ive got a SaveData() routine that saves changes to a DB. When I encounter an exception in the save operations, I am having trouble chaning the cursor back to the default cursor, it just...
10
17296
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)...
2
1547
by: Alex | last post by:
In the code below, clicking on the button ButtonChangeCursor changes the form's cursor to a WaitCursor. Clicking the button ButtonRestoreCursor changes the form's cursor back to its original...
2
9016
by: Jim Frazer | last post by:
Hi, I'm working on an application in C# that will allow the user to create simple CAD drawings on a CEPC system. I would like to be able to change the cursor shape depending on the drawing mode...
7
6170
by: Academic | last post by:
What are the different effects of the following two statements: C1.Cursor = Cursors.WaitCursor C1.Cursor.Current = Cursors.WaitCursor I believe the first replaces the entire C1.Cursor...
0
18006
debasisdas
by: debasisdas | last post by:
RESTRICTIONS ON CURSOR VARIABLES ================================= Currently, cursor variables are subject to the following restrictions: Cannot declare cursor variables in a package spec. ...
4
6948
by: mike | last post by:
I have the opportunity to rescue a project that uses a mouse to sense the relative position of a machine. The hardware is built...just needs to be programmed. Stop snickering!!! I didn't do it...I...
0
7199
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7076
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7274
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
5576
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5005
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4670
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3162
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1507
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
732
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.