Click here to Skip to main content
15,867,453 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: Visual Studio insists my form has changed Pin
Wjousts27-Sep-11 11:41
Wjousts27-Sep-11 11:41 
AnswerRe: Visual Studio insists my form has changed Pin
Alan N24-Sep-11 20:59
Alan N24-Sep-11 20:59 
AnswerRe: Visual Studio insists my form has changed Pin
Eddy Vluggen26-Sep-11 8:33
professionalEddy Vluggen26-Sep-11 8:33 
GeneralRe: Visual Studio insists my form has changed Pin
Wjousts27-Sep-11 11:43
Wjousts27-Sep-11 11:43 
AnswerRe: Visual Studio insists my form has changed Pin
Wjousts27-Sep-11 11:41
Wjousts27-Sep-11 11:41 
QuestionWindows::Forms::ListView Repaint-Bug Pin
Allgaeuer9-Sep-11 1:14
Allgaeuer9-Sep-11 1:14 
GeneralRe: Windows::Forms::ListView Repaint-Bug Pin
MicroVirus12-Sep-11 2:56
MicroVirus12-Sep-11 2:56 
QuestionWaitCursor, again Pin
lukeer8-Sep-11 22:00
lukeer8-Sep-11 22:00 
Hi experts,

the problem described in an earlier message[^] has changed sightly.

An application I'm developing needs to tell user that it is busy while doing some long-term processing and communication with hardware devices in a separate thread. User, in the meantime, needs to press some buttons on those hardware devices depending on what the application shows on screen. But the application itself shall be locked from user interaction with the exception of a "Cancel" button.

I therefore made most controls (excluding the "Cancel" button)
C#
control.UseWaitCursor = true;
control.Enabled = false;

When busy time ends, controls are set back to
C#
control.Enabled = true;
control.UseWaitCursor = false;

A problem I had was that WaitCursor was also shown on the "Cancel" button. That was because I had set the whole Form to UseWaitCursor = true after processing all individual controls. Having removed this erronuous command now, WaitCursor doesn't show up at all.

By playing around a little, I found out that UseWaitCursor = true has no effect on controls that are set to Enabled = false irrespective of command order.

Are there any suggestions for
1. Disabling all controls except for "Cancel" button
2. Showing WaitCursor on all controls except for "Cancel" button

Luc Pattyn already suggested[^] a modal dialog which is impossible due to the information on screen that user needs to press the correct buttons as mentioned above.

Ciao,


luker

AnswerRe: WaitCursor, again Pin
GenJerDan9-Sep-11 4:02
GenJerDan9-Sep-11 4:02 
GeneralRe: WaitCursor, again Pin
lukeer11-Sep-11 22:40
lukeer11-Sep-11 22:40 
GeneralRe: WaitCursor, again Pin
GenJerDan12-Sep-11 3:10
GenJerDan12-Sep-11 3:10 
AnswerRe: WaitCursor, again Pin
MicroVirus9-Sep-11 13:30
MicroVirus9-Sep-11 13:30 
GeneralRe: WaitCursor, again Pin
BillWoodruff9-Sep-11 14:55
professionalBillWoodruff9-Sep-11 14:55 
GeneralRe: WaitCursor, again Pin
lukeer11-Sep-11 23:58
lukeer11-Sep-11 23:58 
GeneralRe: WaitCursor, again Pin
BillWoodruff12-Sep-11 2:04
professionalBillWoodruff12-Sep-11 2:04 
AnswerRe: WaitCursor, again Pin
MicroVirus12-Sep-11 2:51
MicroVirus12-Sep-11 2:51 
AnswerRe: WaitCursor, again Pin
MikeTheFid12-Jan-12 9:12
MikeTheFid12-Jan-12 9:12 
GeneralRe: WaitCursor, again Pin
lukeer16-Jan-12 12:15
lukeer16-Jan-12 12:15 
GeneralRe: WaitCursor, again Pin
MikeTheFid18-Jan-12 9:16
MikeTheFid18-Jan-12 9:16 
Questionadjusting for differences in TitleBar and window border size in Win 7 with some Windows Effects turned on ? Pin
BillWoodruff4-Sep-11 15:31
professionalBillWoodruff4-Sep-11 15:31 
AnswerRe: adjusting for differences in TitleBar and window border size in Win 7 with some Windows Effects turned on ? Pin
Mehdi Gholam5-Sep-11 19:58
Mehdi Gholam5-Sep-11 19:58 
GeneralRe: adjusting for differences in TitleBar and window border size in Win 7 with some Windows Effects turned on ? Pin
BillWoodruff7-Sep-11 5:02
professionalBillWoodruff7-Sep-11 5:02 
GeneralRe: adjusting for differences in TitleBar and window border size in Win 7 with some Windows Effects turned on ? Pin
Mehdi Gholam7-Sep-11 5:09
Mehdi Gholam7-Sep-11 5:09 
AnswerRe: adjusting for differences in TitleBar and window border size in Win 7 with some Windows Effects turned on ? Pin
Mehdi Gholam11-Sep-11 20:49
Mehdi Gholam11-Sep-11 20:49 
GeneralRe: adjusting for differences in TitleBar and window border size in Win 7 with some Windows Effects turned on ? Pin
BillWoodruff12-Sep-11 1:58
professionalBillWoodruff12-Sep-11 1:58 

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.