PC Review


Reply
Thread Tools Rate Thread

Critial operations - "stopping UI interactions"....

 
 
Robin Tucker
Guest
Posts: n/a
 
      5th Apr 2004

I don't want my users to be able to press buttons/manipulate objects in my
software during a "critical operation" (defined as a write operation back to
the database, which happens on various threads). In order to prevent this,
I am "disabling" UI components before starting the write thread and then
"enabling" them again when the thread completes. One of the problems with
this approach is that certain controls (listbox, treeview) render themselves
"disabled" for the duration of the thread, which may be either 0.5 seconds
or as much as 30 seconds. This is causing an aesthetically displeasing
"flashing" of the UI. Is there any way of preventing UI interaction without
showing a modal progress dialog? (my thread executes delgates on the main
form in order to update the very components I would like to be disabled to
the user, so I don't think a modal dialog will work).


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
My "WebClient" Service is stuck in "Stopping" state Michael Windows XP General 4 28th May 2009 05:25 PM
Multiple "Add Sender to Blocked Senders List" operations. =?Utf-8?B?KyBTaGF5bmU=?= Microsoft Outlook Discussion 3 31st Oct 2007 07:57 PM
Display "waiting" pages while long running operations complete Jono Microsoft ASP .NET 4 5th Oct 2006 03:05 PM
SyncToy won't exclude subfolders or "create folder" operations George Windows XP Photos 1 4th Jun 2006 03:16 AM
Why do I "lose context" when I try to move certain operations to class methods? Microsoft ASP .NET 5 24th Jul 2005 09:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:38 AM.