Click here to Skip to main content
15,917,862 members
Home / Discussions / C#
   

C#

 
GeneralRe: Is it possible for me using session variables into a class? Pin
see079-Mar-05 12:09
see079-Mar-05 12:09 
GeneralRe: Is it possible for me using session variables into a class? Pin
Andy Brummer9-Mar-05 12:48
sitebuilderAndy Brummer9-Mar-05 12:48 
GeneralRe: Is it possible for me using session variables into a class? Pin
see079-Mar-05 12:53
see079-Mar-05 12:53 
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 
Create a timer in your class. You'll to subscribe to the timer's Elapsed event and have code to start and stop the timer.

<br />
class MyClass<br />
{<br />
<br />
System.Timers.Timer _timer;<br />
private void SetupTimer()<br />
{<br />
	_timer = new System.Timers.Timer(2000);<br />
	_timer.Elapsed += new System.Timers.ElapsedEventHandler(_timer_Elapsed);<br />
}<br />
		<br />
private void PauseApp()<br />
{<br />
	//... code <br />
	_timer.Enabled = true;<br />
	//... code <br />
}<br />
<br />
private void _timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)<br />
{<br />
	// code...<br />
	_timer.Enabled = false;<br />
	// code...<br />
}<br />
<br />
}<br />

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 
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 

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.