Click here to Skip to main content
15,885,546 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: Linking two pages using Visual STudio Pin
RobCroll10-Oct-11 12:11
RobCroll10-Oct-11 12:11 
GeneralRe: Linking two pages using Visual STudio Pin
rajeevcapgeminiindia17-Nov-11 19:50
rajeevcapgeminiindia17-Nov-11 19:50 
Questiondock a windows form into ppt application window Pin
shama_12325-Sep-11 21:18
shama_12325-Sep-11 21:18 
AnswerRe: dock a windows form into ppt application window Pin
Dave Kreskowiak26-Sep-11 3:40
mveDave Kreskowiak26-Sep-11 3:40 
QuestionVisual Studio insists my form has changed Pin
Wjousts22-Sep-11 4:05
Wjousts22-Sep-11 4:05 
AnswerRe: Visual Studio insists my form has changed Pin
RobCroll24-Sep-11 12:01
RobCroll24-Sep-11 12:01 
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 

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.