Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / June 2007

Tip: Looking for answers? Try searching our database.

Problem with Wait Cursor

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Murthy - 28 Jun 2007 16:10 GMT
Hi,
I am using the below code for displaying the Wait cursor.

Cursor.Current = Cursors.WaitCursor;

But currently in some cases the wait cursor is not getting displayed at all
and in some cases there is more than 5 Seconds delay before the wait cursor
is displayed.

Can some one tell me why this is happening??

How can i avoid this problem??

Thanks in Advance,
Murthy
paul.edmondson@technologyforge.com - 28 Jun 2007 16:21 GMT
> Hi,
> I am using the below code for displaying the Wait cursor.
[quoted text clipped - 11 lines]
> Thanks in Advance,
> Murthy

You may find that there is probably a dealy in loading objects, forms
before the cursor shows.

i.e you may need to  set cursor state before instantiating objects or
loading forms. As they are things that can take time.

I have also had this issue and still do in some places. Sometimes
using application.doevents can help

Paul.
Jerod Houghtelling - 28 Jun 2007 18:22 GMT
I don't know if it will help or not, but you might try to do an
Application.DoEvents() call after setting the cursor.

Cursor.Current = Cursors.WaitCursor;
Application.DoEvents();

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.