Cursor

L

Lespaul36

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
 
S

SStory

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
 
L

Lespaul36

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.
 
T

Thom

something like this might work for you.
private sub button1.click()
Me.Button1.Cursor = System.Windows.Forms.Cursors.WaitCursor
end sub
 
S

SStory

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
 
L

Lespaul36

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top