Click here to Skip to main content
15,885,130 members
Home / Discussions / C#
   

C#

 
AnswerRe: 20 Questions Algorithm Pin
suveenmohan10-Sep-07 23:47
suveenmohan10-Sep-07 23:47 
GeneralRe: 20 Questions Algorithm Pin
Andre Trollip11-Sep-07 3:17
Andre Trollip11-Sep-07 3:17 
QuestionMicrosoft image printing problems Pin
pmartike10-Sep-07 20:43
pmartike10-Sep-07 20:43 
Questiondisable a button Pin
Sunshine Always10-Sep-07 20:07
Sunshine Always10-Sep-07 20:07 
AnswerRe: disable a button Pin
Chetan Patel10-Sep-07 20:23
Chetan Patel10-Sep-07 20:23 
GeneralRe: disable a button Pin
Sunshine Always10-Sep-07 20:31
Sunshine Always10-Sep-07 20:31 
GeneralRe: disable a button Pin
Martin#10-Sep-07 22:06
Martin#10-Sep-07 22:06 
AnswerRe: disable a button Pin
Luc Pattyn11-Sep-07 0:50
sitebuilderLuc Pattyn11-Sep-07 0:50 
Hi,

the way you do it, button2 is not disabled at all, since the 2-second period it is disabled
you also "stop the world" by holding off the GUI thread.

don't put Thread.Sleep() in an event handler, it stops the GUI, which you never want to
happen. Instead, disable button2 and organize something to re-enable the button later.
For instance launch a Windows.Forms.Timer; when that timer expires, re-enable button2.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


Questionhow can show a pdf file in C#? Pin
B.A10-Sep-07 19:54
B.A10-Sep-07 19:54 
AnswerRe: how can show a pdf file in C#? Pin
satsumatable10-Sep-07 20:49
satsumatable10-Sep-07 20:49 
GeneralRe: how can show a pdf file in C#? Pin
blackjack215010-Sep-07 22:07
blackjack215010-Sep-07 22:07 
AnswerRe: how can show a pdf file in C#? Pin
Luc Pattyn11-Sep-07 0:52
sitebuilderLuc Pattyn11-Sep-07 0:52 
GeneralRe: how can show a pdf file in C#? Pin
B.A11-Sep-07 3:17
B.A11-Sep-07 3:17 
Questionavoid .net reflector Pin
Eli Nurman10-Sep-07 18:32
Eli Nurman10-Sep-07 18:32 
AnswerRe: avoid .net reflector Pin
VirtualVoid.NET10-Sep-07 21:43
VirtualVoid.NET10-Sep-07 21:43 
AnswerRe: avoid .net reflector Pin
Arjan Einbu10-Sep-07 21:49
Arjan Einbu10-Sep-07 21:49 
AnswerRe: avoid .net reflector Pin
blackjack215010-Sep-07 21:59
blackjack215010-Sep-07 21:59 
AnswerJust a thought Pin
Urs Enzler11-Sep-07 2:56
Urs Enzler11-Sep-07 2:56 
QuestionHow to combine two DLL into one ? Pin
bug_aonz10-Sep-07 17:22
bug_aonz10-Sep-07 17:22 
AnswerRe: How to combine two DLL into one ? Pin
Mark Churchill10-Sep-07 18:05
Mark Churchill10-Sep-07 18:05 
GeneralRe: How to combine two DLL into one ? Pin
bug_aonz10-Sep-07 18:32
bug_aonz10-Sep-07 18:32 
AnswerRe: How to combine two DLL into one ? Pin
Virendrak10-Sep-07 19:43
Virendrak10-Sep-07 19:43 
AnswerRe: How to combine two DLL into one ? Pin
Virendrak10-Sep-07 19:51
Virendrak10-Sep-07 19:51 
QuestionHow to download multiple files in the same url? Pin
bug_aonz10-Sep-07 17:15
bug_aonz10-Sep-07 17:15 
QuestionPlaying Sounds through the Speakers Pin
max2929710-Sep-07 16:36
max2929710-Sep-07 16:36 

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.