Click here to Skip to main content
15,898,883 members
Home / Discussions / C#
   

C#

 
QuestionCoordinates problem Pin
Silvyster22-May-09 0:08
Silvyster22-May-09 0:08 
AnswerRe: Coordinates problem Pin
molesworth22-May-09 0:12
molesworth22-May-09 0:12 
GeneralRe: Coordinates problem Pin
Silvyster22-May-09 0:32
Silvyster22-May-09 0:32 
GeneralRe: Coordinates problem Pin
molesworth22-May-09 0:51
molesworth22-May-09 0:51 
GeneralRe: Coordinates problem Pin
Silvyster22-May-09 1:13
Silvyster22-May-09 1:13 
GeneralRe: Coordinates problem Pin
OriginalGriff22-May-09 1:27
mveOriginalGriff22-May-09 1:27 
GeneralRe: Coordinates problem Pin
molesworth22-May-09 1:38
molesworth22-May-09 1:38 
Questioncreate Timers dynamically Pin
Member 305788721-May-09 23:50
Member 305788721-May-09 23:50 
Hi,

I am working in windows application in which I need to create Timers dynamically based on number of records in database. I am able to do that but the problem is I can't identify which timer is raising the tick event.
Below is the sample code on which I am working.

public Form1()
{
InitializeComponent();
System.Timers.Timer timer1 = new System.Timers.Timer;
timer1.Enabled = true;
timer1.Interval = 5000;
timer1.Elapsed += new ElapsedEventHandler(TimerTick);
timer1.Start();
}
public void TimerTick(object source, ElapsedEventArgs e)
{
string s = ((System.Timers.Timer)source);
string s1 = e.ToString();
}

Thanks in advance
AnswerRe: create Timers dynamically Pin
musefan22-May-09 0:03
musefan22-May-09 0:03 
GeneralRe: create Timers dynamically Pin
Member 305788722-May-09 0:25
Member 305788722-May-09 0:25 
GeneralRe: create Timers dynamically Pin
musefan22-May-09 0:31
musefan22-May-09 0:31 
GeneralRe: create Timers dynamically Pin
DaveyM6922-May-09 0:43
professionalDaveyM6922-May-09 0:43 
GeneralRe: create Timers dynamically Pin
musefan22-May-09 0:46
musefan22-May-09 0:46 
AnswerRe: create Timers dynamically Pin
DaveyM6922-May-09 0:18
professionalDaveyM6922-May-09 0:18 
GeneralRe: create Timers dynamically Pin
Member 305788722-May-09 4:47
Member 305788722-May-09 4:47 
GeneralRe: create Timers dynamically Pin
DaveyM6922-May-09 6:23
professionalDaveyM6922-May-09 6:23 
GeneralRe: create Timers dynamically Pin
mell mell28-Dec-18 6:24
mell mell28-Dec-18 6:24 
Questioni cant get a class i made- description inside- win app Pin
dinbrca3521-May-09 23:35
dinbrca3521-May-09 23:35 
AnswerRe: i cant get a class i made- description inside- win app Pin
musefan21-May-09 23:58
musefan21-May-09 23:58 
Questiondatagridview column Pin
michaelgr121-May-09 23:28
michaelgr121-May-09 23:28 
AnswerRe: datagridview column Pin
Mycroft Holmes21-May-09 23:48
professionalMycroft Holmes21-May-09 23:48 
GeneralRe: datagridview column Pin
michaelgr122-May-09 1:42
michaelgr122-May-09 1:42 
GeneralRe: datagridview column Pin
Mycroft Holmes22-May-09 2:45
professionalMycroft Holmes22-May-09 2:45 
QuestionSecurity "string" encrypt Pin
evangile21-May-09 22:56
evangile21-May-09 22:56 
AnswerRe: Security "string" encrypt Pin
musefan21-May-09 23:08
musefan21-May-09 23:08 

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.