Click here to Skip to main content
15,903,201 members
Home / Discussions / C#
   

C#

 
GeneralPrinting Problem Pin
GoodQuestion9-Mar-05 5:35
GoodQuestion9-Mar-05 5:35 
QuestionShow 1st instance of application when starting 2nd instance? Pin
Kasdoffe9-Mar-05 5:22
Kasdoffe9-Mar-05 5:22 
AnswerRe: Show 1st instance of application when starting 2nd instance? Pin
TylerBrinks9-Mar-05 6:25
TylerBrinks9-Mar-05 6:25 
GeneralC# Timers Pin
GaMBiT_KC9-Mar-05 5:18
GaMBiT_KC9-Mar-05 5:18 
GeneralRe: C# Timers Pin
TylerBrinks9-Mar-05 6:32
TylerBrinks9-Mar-05 6:32 
GeneralRe: C# Timers Pin
Joseph Baker26-Mar-05 14:32
Joseph Baker26-Mar-05 14:32 
GeneralRe: C# Timers Pin
MoustafaS9-Mar-05 7:18
MoustafaS9-Mar-05 7:18 
GeneralRe: C# Timers Pin
TylerBrinks9-Mar-05 10:37
TylerBrinks9-Mar-05 10:37 
You shold not do that. It's a bad idea. If you call Thread.sleep(...) you'll lock up the main thread (probably your UI thred) for 2 seconds. You should NEVER break a user's access to your main thread for long running processes, especially in this case where it happens often as in your post. If you do, your app will seem to lock up to the user. Instead, if you use the timer with threading you will prevent the main thread from being locked, and you have the ability to enable and disable specific items (buttons etc...) accordingly. You always want to allow user interaction, even if you have to lock down controls and there's nothing enabled to interact with.
GeneralRe: C# Timers Pin
eggie59-Mar-05 18:53
eggie59-Mar-05 18:53 
GeneralRe: C# Timers Pin
TylerBrinks10-Mar-05 4:34
TylerBrinks10-Mar-05 4:34 
GeneralRe: C# Timers Pin
GaMBiT_KC9-Mar-05 20:34
GaMBiT_KC9-Mar-05 20:34 
QuestionIs there a way to disable FontAntialiasing/ClearType? Pin
Sebastian Schneider9-Mar-05 3:54
Sebastian Schneider9-Mar-05 3:54 
AnswerRe: Is there a way to disable FontAntialiasing/ClearType? Pin
Heath Stewart9-Mar-05 7:39
protectorHeath Stewart9-Mar-05 7:39 
GeneralMax Windows Controls Pin
Dylan van Heerden9-Mar-05 2:49
Dylan van Heerden9-Mar-05 2:49 
GeneralRe: Max Windows Controls Pin
Heath Stewart9-Mar-05 7:32
protectorHeath Stewart9-Mar-05 7:32 
GeneralRe: Max Windows Controls Pin
Dylan van Heerden9-Mar-05 19:41
Dylan van Heerden9-Mar-05 19:41 
GeneralRe: Max Windows Controls Pin
Heath Stewart10-Mar-05 6:00
protectorHeath Stewart10-Mar-05 6:00 
GeneralRe: Max Windows Controls Pin
Dylan van Heerden10-Mar-05 20:32
Dylan van Heerden10-Mar-05 20:32 
Generalrestrict users to save/copy pdf document Pin
Adnan Siddiqi9-Mar-05 0:36
Adnan Siddiqi9-Mar-05 0:36 
GeneralRe: restrict users to save/copy pdf document Pin
Heath Stewart9-Mar-05 7:29
protectorHeath Stewart9-Mar-05 7:29 
GeneralRe: restrict users to save/copy pdf document Pin
Dave Kreskowiak9-Mar-05 7:36
mveDave Kreskowiak9-Mar-05 7:36 
QuestionWindows Image Acquisition, without the default UI? Pin
velvetacid9-Mar-05 0:35
velvetacid9-Mar-05 0:35 
Generalgetting the handle to a printer Pin
cishi_us9-Mar-05 0:17
cishi_us9-Mar-05 0:17 
Generaldatagrid and DialogResult.OK Pin
Anonymous8-Mar-05 23:28
Anonymous8-Mar-05 23:28 
GeneralRe: datagrid and DialogResult.OK Pin
Stefan Troschuetz8-Mar-05 23:53
Stefan Troschuetz8-Mar-05 23:53 

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.