By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,515 Members | 1,061 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,515 IT Pros & Developers. It's quick & easy.

Cursor

P: n/a
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
Share this Question
Share on Google+
5 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.