I have a UserControl that contains a few controls on it.
If when one of the buttons is clicked I want to, in the click event, set the
cursor to
Cursor = Cursors.WaitCur sor
I want the cursor to change everywhere on the UserControl.
Do I have to loop over the UserControl's Control collection and set each
control's cursor?
Suppose I want the entire form containing the usercontrol to display a
WaitCursor, do I need to raise an event and have the form loop over all it's
controls?
Thanks in advance 5 1488
Just set the Cursor for the usercontrol to Cursors.WaitCur sor. If you want to change the cursor for the whole form, set the forms Cursor property.
Regards,
Phil.
"Just Me" wrote: I have a UserControl that contains a few controls on it.
If when one of the buttons is clicked I want to, in the click event, set the cursor to Cursor = Cursors.WaitCur sor
I want the cursor to change everywhere on the UserControl.
Do I have to loop over the UserControl's Control collection and set each control's cursor? Suppose I want the entire form containing the usercontrol to display a WaitCursor, do I need to raise an event and have the form loop over all it's controls?
Thanks in advance
I have two similar situations in which I did just that.
In one case I see the WaitCursor even as I move over controls on the
UserControl.
In the other I see the WaitCursor over one of the controls but not over the
others.
I've been looking to see if I could see something different about the
controls that do not show the WaitCursor but can find nothing>
Have any idea what could cause that to happen??
Thanks for the response
"Phil Williams" <Ph**********@d iscussions.micr osoft.com> wrote in message
news:D7******** *************** ***********@mic rosoft.com... Just set the Cursor for the usercontrol to Cursors.WaitCur sor. If you
want to change the cursor for the whole form, set the forms Cursor property. Regards, Phil.
"Just Me" wrote:
I have a UserControl that contains a few controls on it.
If when one of the buttons is clicked I want to, in the click event, set
the cursor to Cursor = Cursors.WaitCur sor
I want the cursor to change everywhere on the UserControl.
Do I have to loop over the UserControl's Control collection and set each control's cursor? Suppose I want the entire form containing the usercontrol to display a WaitCursor, do I need to raise an event and have the form loop over all
it's controls?
Thanks in advance
I did what you said and while single stepping found the problem.
Don't know why but executing
SHFileOperation (FileOperation)
Change the cursor to Default.
I set the cursor right after and that fixed it.
Is there something I should know - like API calls resets the cursor??
Thanks for the help
"Phil Williams" <Ph**********@d iscussions.micr osoft.com> wrote in message
news:D9******** *************** ***********@mic rosoft.com... I tried to reproduce your problem, but cannot.
When you get the wait cursor showing just over the one control, try
checking the Cursor property for that control. If it is set to
Cursors.WaitCur sor, try adding a CursorChanged event handler to the control.
Use the event handler to find the line of code which changes the Cursor
property to Cursors.WaitCur sor. Regards, Phil.
"Just Me" wrote:
I have two similar situations in which I did just that. In one case I see the WaitCursor even as I move over controls on the UserControl. In the other I see the WaitCursor over one of the controls but not over
the others. I've been looking to see if I could see something different about the controls that do not show the WaitCursor but can find nothing>
Have any idea what could cause that to happen??
Thanks for the response
"Phil Williams" <Ph**********@d iscussions.micr osoft.com> wrote in
message news:D7******** *************** ***********@mic rosoft.com... Just set the Cursor for the usercontrol to Cursors.WaitCur sor. If you want to change the cursor for the whole form, set the forms Cursor
property. Regards, Phil.
"Just Me" wrote:
> I have a UserControl that contains a few controls on it. > > If when one of the buttons is clicked I want to, in the click event,
set the > cursor to > Cursor = Cursors.WaitCur sor > > I want the cursor to change everywhere on the UserControl. > > Do I have to loop over the UserControl's Control collection and set
each > control's cursor? > > > > Suppose I want the entire form containing the usercontrol to display
a > WaitCursor, do I need to raise an event and have the form loop over
all it's > controls? > > > > > > Thanks in advance > > > > > > >
What happen if you use System.IO.File. Copy / Delete / Move instead of SHFileOperation ?
"Just Me" wrote: I did what you said and while single stepping found the problem. Don't know why but executing SHFileOperation (FileOperation)
Change the cursor to Default.
I set the cursor right after and that fixed it.
Is there something I should know - like API calls resets the cursor??
Thanks for the help "Phil Williams" <Ph**********@d iscussions.micr osoft.com> wrote in message news:D9******** *************** ***********@mic rosoft.com... I tried to reproduce your problem, but cannot.
When you get the wait cursor showing just over the one control, try checking the Cursor property for that control. If it is set to Cursors.WaitCur sor, try adding a CursorChanged event handler to the control. Use the event handler to find the line of code which changes the Cursor property to Cursors.WaitCur sor. Regards, Phil.
"Just Me" wrote:
I have two similar situations in which I did just that. In one case I see the WaitCursor even as I move over controls on the UserControl. In the other I see the WaitCursor over one of the controls but not over the others. I've been looking to see if I could see something different about the controls that do not show the WaitCursor but can find nothing>
Have any idea what could cause that to happen??
Thanks for the response
"Phil Williams" <Ph**********@d iscussions.micr osoft.com> wrote in message news:D7******** *************** ***********@mic rosoft.com... > Just set the Cursor for the usercontrol to Cursors.WaitCur sor. If you want to change the cursor for the whole form, set the forms Cursor property. > > Regards, > Phil. > > "Just Me" wrote: > > > I have a UserControl that contains a few controls on it. > > > > If when one of the buttons is clicked I want to, in the click event, set the > > cursor to > > Cursor = Cursors.WaitCur sor > > > > I want the cursor to change everywhere on the UserControl. > > > > Do I have to loop over the UserControl's Control collection and set each > > control's cursor? > > > > > > > > Suppose I want the entire form containing the usercontrol to display a > > WaitCursor, do I need to raise an event and have the form loop over all it's > > controls? > > > > > > > > > > > > Thanks in advance > > > > > > > > > > > > > >
That works OK
Thanks
"Phil Williams" <Ph**********@d iscussions.micr osoft.com> wrote in message
news:22******** *************** ***********@mic rosoft.com... What happen if you use System.IO.File. Copy / Delete / Move instead of
SHFileOperation ?
"Just Me" wrote:
I did what you said and while single stepping found the problem. Don't know why but executing SHFileOperation (FileOperation)
Change the cursor to Default.
I set the cursor right after and that fixed it.
Is there something I should know - like API calls resets the cursor??
Thanks for the help "Phil Williams" <Ph**********@d iscussions.micr osoft.com> wrote in
message news:D9******** *************** ***********@mic rosoft.com... I tried to reproduce your problem, but cannot.
When you get the wait cursor showing just over the one control, try checking the Cursor property for that control. If it is set to Cursors.WaitCur sor, try adding a CursorChanged event handler to the
control. Use the event handler to find the line of code which changes the Cursor property to Cursors.WaitCur sor. Regards, Phil.
"Just Me" wrote:
> I have two similar situations in which I did just that. > In one case I see the WaitCursor even as I move over controls on the > UserControl. > In the other I see the WaitCursor over one of the controls but not
over the > others. > I've been looking to see if I could see something different about
the > controls that do not show the WaitCursor but can find nothing> > > Have any idea what could cause that to happen?? > > Thanks for the response > > "Phil Williams" <Ph**********@d iscussions.micr osoft.com> wrote in message > news:D7******** *************** ***********@mic rosoft.com... > > Just set the Cursor for the usercontrol to Cursors.WaitCur sor. If
you > want to change the cursor for the whole form, set the forms Cursor property. > > > > Regards, > > Phil. > > > > "Just Me" wrote: > > > > > I have a UserControl that contains a few controls on it. > > > > > > If when one of the buttons is clicked I want to, in the click
event, set > the > > > cursor to > > > Cursor = Cursors.WaitCur sor > > > > > > I want the cursor to change everywhere on the UserControl. > > > > > > Do I have to loop over the UserControl's Control collection and
set each > > > control's cursor? > > > > > > > > > > > > Suppose I want the entire form containing the usercontrol to
display a > > > WaitCursor, do I need to raise an event and have the form loop
over all > it's > > > controls? > > > > > > > > > > > > > > > > > > Thanks in advance > > > > > > > > > > > > > > > > > > > > > > > > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Alban Hertroys |
last post by:
Oh no! It's me and transactions again :)
I'm not really sure whether this is a limitation of psycopg or
postgresql. When I use multiple cursors in a transaction, the records
inserted at the start of the transaction aren't visible to those later
on in that transaction (using a different cursor).
Attached is a simplified example (the except's are a bit blunt, I know)
of what I'm trying to do. In reality, the different cursors are...
|
by: T.S.Negi |
last post by:
Hi All,
I want to avoid using cursors and loops in stored procedures.
Please suggest alternate solutions with example (if possible).
Any suggestion in these regards will be appreciated.
Thanks in advance,
T.S.Negi
|
by: Todd Huish |
last post by:
I have noticed something disturbing when retrieving datasets over a
relatively slow line (multiple T1). I am looking at about 25 seconds to
retrieve 500 rows via a php-odbc link. This same select from the cli is
for all intents practicaly instantaneous. After much research I discovered
that PHP by default uses a dynamic cursor type which can be quite a bit
slower than a forward only cursor. BTW I have been searching forward
only/read...
|
by: a |
last post by:
Hello,
I am doing some multithreading in an MDI app, and I can't seem to get the
cursor to stay as an Hourglass. I call:
Cursor.Current = cursors.wait
at the beginning of my routing, and set it back to cursors.default when the
thread ends (using a callback)
|
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?
| |
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
|
by: H. Williams |
last post by:
I know the .Net Cursor class doesn't work with color cursors. So I'm
currently using the LoadCursorFromFile API with reflection to set color
cursors:
here is my code:
public static extern IntPtr LoadCursorFromFile(
string fileName );
IntPtr hwdCursor= LoadCursorFromFile( "color.cur" );
myCursor.GetType().InvokeMember("handle",BindingFlags.Public |
|
by: schwartzenberg |
last post by:
Dear friends,
I have just run into a strange DB2 problem. Something i'd some of you
would answer, if only shortly.
My basic question is:
How do i ensure 'insensitive' (ie static) cursors that are only forward
readable (in DB2 for mainframe)??
It seems that the cursors i'm working on suddenly have become (after
|
by: Dima Kuchin |
last post by:
Hello,
I was trying to find the information about when and where should I use
cursors in DB2, no luck. Maybe you can point me to some article that
describes just that (or tell me which page is it in DB2 SQL reference
book, if it's there)? Or maybe you can post a short answer here, if
there's no dedicated article?
Another question would be about scrollable cursors (just found out
about their existence) - what performance gains will I...
|
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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...
| |
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...
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
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...
| |