473,386 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Cursor problem

I have a usercontrol, UC1, which contains a different usercontrol, UC2, a
listview and a combobox.

In the code for UC1 I do:
Cursor = Cursors.WaitCursor

The mousepointer changes to the WaitCursor if I'm over UC2 but changes back
to the default when I'm over the other two items?

Anyone have any idea what might be happening and how I can fix it?

Thanks
Nov 20 '05 #1
2 1400
Hi,

You only changed the cursor for uc1 you need to change the cursor
for uc2 also.

Ken
--------------------
" Just Me" <ne********@a-znet.com> wrote in message
news:ud**************@TK2MSFTNGP10.phx.gbl...
I have a usercontrol, UC1, which contains a different usercontrol, UC2, a
listview and a combobox.

In the code for UC1 I do:
Cursor = Cursors.WaitCursor

The mousepointer changes to the WaitCursor if I'm over UC2 but changes back
to the default when I'm over the other two items?

Anyone have any idea what might be happening and how I can fix it?

Thanks

Nov 20 '05 #2
Ken,
I don't understand the suggestion. When I'm over UC2 I get the changed
cursor. It's the other controls that don't work OK.

I guess the question is why does it appear UC2 gets it's cursor from the
containing UC1 but the others do not?
Bottom line question: Is it necessary to set the cursor for every control
contained in UC1 or is changing UC1 sufficient?

Thanks

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:e$*************@TK2MSFTNGP11.phx.gbl...
Hi,

You only changed the cursor for uc1 you need to change the cursor
for uc2 also.

Ken
--------------------
" Just Me" <ne********@a-znet.com> wrote in message
news:ud**************@TK2MSFTNGP10.phx.gbl...
I have a usercontrol, UC1, which contains a different usercontrol, UC2, a
listview and a combobox.

In the code for UC1 I do:
Cursor = Cursors.WaitCursor

The mousepointer changes to the WaitCursor if I'm over UC2 but changes back to the default when I'm over the other two items?

Anyone have any idea what might be happening and how I can fix it?

Thanks

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: DarthMacgyver | last post by:
Hello, I recently wrote a survey application. Each question is very similar. The first questions gives me a problem when there are multiple people taking the survey (The Database connection...
4
by: Oliver Stratmann | last post by:
Hello All! We have a cursor in an application which fetches some data out of a DB2-DB. Normally it all works kind of well. We inserted a routine at certain places in order to do some...
0
by: Prashanth | last post by:
I am getting this error from BEA DB2 Driver in weblogic console. java.sql.SQLException: CURSOR C02 NOT IN A PREPARED STATE java.sql.SQLException: CURSOR C02 NOT IN A PREPARED STATE We keep...
1
by: ilPostino | last post by:
I'm using this function to load a custom cursor from a .cur file; public static extern IntPtr LoadCursorFromFile(String str); It works great but if I popup a ContextMenu or Control like a...
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: Craig | last post by:
I'm trying to do this within a control I've created: Cursor.Current = Cursors.WaitCursor; During the initialization of the parent form, my control gets added to the form, and while the control...
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)...
12
by: Lucky | last post by:
Hi guys! i want to create one cursor in the t-sql. the problem is i want to use stored procedure instead of select command in cursor. can anyone tell me how can i use stored procedure's o/p to...
6
by: Tomek | last post by:
In my page I reload JavaScript. When it is reloading the cursor change to "wait" (hourglass). After javascript loaded it does not change back to the "hand" if cursor stay on hyperlinks. How can I...
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...

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.