473,903 Members | 5,121 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 1978
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
17319
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 so that I don't have to wait for the next mouse event before the cursor gets repainted. (2) Why...
5
14468
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 when it is over the main window and be normal (arrow) when it is over the dialog box. I cannot do...
2
1785
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 standard error handling module. See code below... Any ideas? Thanks, Dave
10
17404
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
1562
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 Cursor Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
2
9062
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 to change to a different cursor, such as the cross cursor, but as soon as the application leaves...
7
6191
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
18049
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
6985
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 measurement, but it's an auditing function and that's acceptable.
0
10006
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11294
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10882
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10990
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
10504
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9692
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7215
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4734
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
3
3329
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.