473,943 Members | 12,616 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Do I need to reset the cursor or will that happen automatically when I leave the subroutine?

If I do the following:

System.Windows. Forms.Cursor.Cu rrent = Cursors.WaitCur sor

Do I need to reset the cursor or will that happen automatically when I leave
the subroutine?

Thanks
Nov 4 '06 #1
3 1418
Try it an see...

" Academic" <ac************ @a-znet.comwrote in message
news:uX******** ******@TK2MSFTN GP03.phx.gbl...
If I do the following:

System.Windows. Forms.Cursor.Cu rrent = Cursors.WaitCur sor

Do I need to reset the cursor or will that happen automatically when I
leave the subroutine?

Thanks


Nov 4 '06 #2
I got confusing results.

certainly if you use that statement you know if you reset or not.

Do you?

"Terry Olsen" <to******@hotma il.comwrote in message
news:OH******** ******@TK2MSFTN GP02.phx.gbl...
Try it an see...

" Academic" <ac************ @a-znet.comwrote in message
news:uX******** ******@TK2MSFTN GP03.phx.gbl...
>If I do the following:

System.Windows .Forms.Cursor.C urrent = Cursors.WaitCur sor

Do I need to reset the cursor or will that happen automatically when I
leave the subroutine?

Thanks



Nov 4 '06 #3


I just found UseWaitCursor

Looks like I should be using it to set the cursor.

The statement below does not say what happens when it is set to false.

I'm thinking of nested routines all of which set it to true. What happens if
one finishes and sets it to false?

Is this what developers use since net 2.0

thanks

When this property is set to true, the UseWaitCursor property of all open
forms in the application will be set to true. This call will not return
until this property has been set on all forms. Use this property when you
have a long-running operation, and want to indicate in all application forms
that the operation is still processing.



" Academic" <ac************ @a-znet.comwrote in message
news:uX******** ******@TK2MSFTN GP03.phx.gbl...
If I do the following:

System.Windows. Forms.Cursor.Cu rrent = Cursors.WaitCur sor

Do I need to reset the cursor or will that happen automatically when I
leave the subroutine?

Thanks


Nov 4 '06 #4

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

Similar topics

3
1853
by: Metin Esat | last post by:
The following SP removes records from table A if they exist in table B. Table A - TEST.TABLE_X has 30 million records Table B - TEST.TABLE_X_DELTA has 5 million records. Appx 4 million records shoud be deleted in Table A. However my query moves the cursor one record at a time. So this is extremely slow. The reason I have to use a SP is bec I need to avoid fulling the log space. Thus I need to commit frequently.
106
6559
by: xtra | last post by:
Hi Folk I have about 1000 procedures in my project. Many, many of them are along the lines of function myfuntion () as boolean on error goto er '- Dim Dbs as dao.database Dim Rst as dao.recordset
2
9215
by: Jon Davis | last post by:
The garbage handler in the .NET framework is handy. When objects fall out of scope, they are automatically destroyed, and the programmer doesn't have to worry about deallocating the memory space for those objects. In fact, all the programmer has to worry about is the total sum of objects loaded into RAM at any known point. Memory leaks are not a problem. .... So one would like to think. The reality is that delegates and event...
5
2667
by: vamsioracle | last post by:
Hi Folks I have written a code to send emails from oracle. Below is the code. I have registered this is Apps and scheduled the concurrent program to run every day. Now i want implement logic, such that even though the concurrent program runs, it should not send email on Saturdays and Sundays. The due date in the below code is always the next_day of the day I apply leave. It can be Saturday/Sunday. So my package is dependent on due date. ...
0
10143
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
9970
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,...
0
11133
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
11306
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
9866
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...
1
8233
isladogs
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...
0
6312
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4914
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
3517
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.