473,545 Members | 1,689 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 1960
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******** ******@TK2MSFTN GP11.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*******@TAKE OUTTHISSPAMBUST ERsofthome.net> wrote in message
news:uo******** ******@TK2MSFTN GP12.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******** ******@TK2MSFTN GP11.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.Curs or = System.Windows. Forms.Cursors.W aitCursor
end sub

"Lespaul36" <le*******@none .net> wrote in message
news:Ok******** *****@tk2msftng p13.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*******@TAKE OUTTHISSPAMBUST ERsofthome.net> wrote in message
news:uo******** ******@TK2MSFTN GP12.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******** ******@TK2MSFTN GP11.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=curso rs.wait
end sub

is that what you need?

of course to change just for button
button.cursor=c ursors.wait
"Lespaul36" <le*******@none .net> wrote in message
news:Ok******** *****@tk2msftng p13.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*******@TAKE OUTTHISSPAMBUST ERsofthome.net> wrote in message
news:uo******** ******@TK2MSFTN GP12.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******** ******@TK2MSFTN GP11.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*******@TAKE OUTTHISSPAMBUST ERsofthome.net> wrote in message
news:Or******** *****@TK2MSFTNG P12.phx.gbl...
Does this change the form's cursor?

private sub button_click()
me.cursor=curso rs.wait
end sub

is that what you need?

of course to change just for button
button.cursor=c ursors.wait
"Lespaul36" <le*******@none .net> wrote in message
news:Ok******** *****@tk2msftng p13.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*******@TAKE OUTTHISSPAMBUST ERsofthome.net> wrote in message
news:uo******** ******@TK2MSFTN GP12.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******** ******@TK2MSFTN GP11.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
17292
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 seems to be ignored completely, even when I try with window.setTimeout. So my two questions are: (1) Most important: Is there anything I can do...
5
14422
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 in the main thread while the work is done in a background thread. I managed to do it except for one minor problem: I want the cursor to be hourglass...
2
1768
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 stays as an hourglass. It seems as though the cursor can only be set in the context of the form. I would like to set the cursor within my...
10
17309
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) stored in Me.Cursor. Or is Cursors.Default some process wide cursor shape? What is a correct statement?
2
1549
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 cursor. For the reasons I explain below I wouldn't expect this code to behave as it does, so why does it work? Public Class Form1 Dim OldCursor As...
2
9021
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 selected by the user. I started out by setting up P/Invokes for LoadCursor and SetCursor. Calling LoadCursor followed by SetCursor does allow me...
7
6172
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 object with a new one while the second only replaces the Current object of C1.Cursor, but I can't
0
18010
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. CREATE PACKAGE emp_stuff AS TYPE EmpCurTyp IS REF CURSOR RETURN emp%ROWTYPE; emp_cv EmpCurTyp; -- not allowed END emp_stuff;
4
6954
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 just gotta fix it. I need to make some calculations on the measurements and VB6 is my language. Yes, the system mouse will corrupt the...
0
7465
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7398
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7656
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7805
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7416
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
4944
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3441
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1878
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 we have to send another system
1
1013
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.