472,791 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,791 software developers and data experts.

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 1899
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
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
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
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
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
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
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
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
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
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...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

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.