Click here to Skip to main content
15,890,609 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: Get rid of WaitCursor Pin
Eddy Vluggen3-Sep-11 13:15
professionalEddy Vluggen3-Sep-11 13:15 
GeneralRe: Get rid of WaitCursor Pin
Luc Pattyn3-Sep-11 13:36
sitebuilderLuc Pattyn3-Sep-11 13:36 
GeneralRe: Get rid of WaitCursor Pin
Eddy Vluggen3-Sep-11 22:43
professionalEddy Vluggen3-Sep-11 22:43 
GeneralRe: Get rid of WaitCursor Pin
BillWoodruff3-Sep-11 19:19
professionalBillWoodruff3-Sep-11 19:19 
GeneralRe: Get rid of WaitCursor Pin
Luc Pattyn4-Sep-11 2:42
sitebuilderLuc Pattyn4-Sep-11 2:42 
GeneralRe: Get rid of WaitCursor Pin
BillWoodruff4-Sep-11 14:21
professionalBillWoodruff4-Sep-11 14:21 
GeneralRe: Get rid of WaitCursor Pin
Luc Pattyn4-Sep-11 14:42
sitebuilderLuc Pattyn4-Sep-11 14:42 
GeneralRe: Get rid of WaitCursor Pin
lukeer4-Sep-11 21:03
lukeer4-Sep-11 21:03 
As others have already mentioned, the use of using for this purpose and similar ones is a very interesting technique.

However, in this situation, it won't work. The long lasting operation is started (by user pressing a button) sending a message to some hardware device. The application then waits for an answer, sends another message, waits and so on. The operation is finished when receiving a message meaning "All done" or "Error".

Since start and end of the operation reside in separate methods, I'll stick with explicit calls to
someControl.UseWaitCursor = someBooleanValue and try setting the focus to make it happen immediately.

As for the side note: communication runs in another thread, of course.
And user shall not be allowed to do anything in the meantime except for pressing the cancel button (by customer request). Therefore, all controls are disabled except for the cancel button and all its parenting controls up to the main form.

Ciao,


luker

AnswerRe: Get rid of WaitCursor Pin
Luc Pattyn5-Sep-11 1:29
sitebuilderLuc Pattyn5-Sep-11 1:29 
GeneralRe: Get rid of WaitCursor Pin
MicroVirus5-Sep-11 11:17
MicroVirus5-Sep-11 11:17 
QuestionDeploying Reports Pin
eddieangel30-Aug-11 6:40
eddieangel30-Aug-11 6:40 
AnswerRe: Deploying Reports Pin
army_man7165530-Aug-11 8:00
army_man7165530-Aug-11 8:00 
Questionwindows forms using active directory Pin
dcof24-Aug-11 5:50
dcof24-Aug-11 5:50 
AnswerRe: windows forms using active directory Pin
GenJerDan24-Aug-11 6:16
GenJerDan24-Aug-11 6:16 
GeneralRe: windows forms using active directory Pin
dcof24-Aug-11 11:42
dcof24-Aug-11 11:42 
GeneralRe: windows forms using active directory Pin
GenJerDan25-Aug-11 3:22
GenJerDan25-Aug-11 3:22 
QuestionHost a WPF form/application windows inside a Winform - how? Pin
devvvy16-Aug-11 15:30
devvvy16-Aug-11 15:30 
AnswerRe: Host a WPF form/application windows inside a Winform - how? Pin
Simon Bang Terkildsen20-Aug-11 15:14
Simon Bang Terkildsen20-Aug-11 15:14 
QuestionWindows7 hosts file is ignored Pin
Muammar©13-Aug-11 20:45
Muammar©13-Aug-11 20:45 
AnswerRe: Windows7 hosts file is ignored Pin
Eddy Vluggen13-Aug-11 22:24
professionalEddy Vluggen13-Aug-11 22:24 
AnswerRe: Windows7 hosts file is ignored Pin
DaveAuld13-Aug-11 22:44
professionalDaveAuld13-Aug-11 22:44 
Questionwindows front end Pin
jon18889-Aug-11 14:59
jon18889-Aug-11 14:59 
AnswerRe: windows front end Pin
Shameel9-Aug-11 22:22
professionalShameel9-Aug-11 22:22 
GeneralRe: windows front end Pin
jon188810-Aug-11 5:10
jon188810-Aug-11 5:10 
AnswerRe: windows front end Pin
Abhinav S10-Aug-11 1:09
Abhinav S10-Aug-11 1:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.