Click here to Skip to main content
15,887,812 members
Home / Discussions / C#
   

C#

 
GeneralRe: problem with Main() method with argument(s). Pin
Colin Angus Mackay8-Apr-07 16:12
Colin Angus Mackay8-Apr-07 16:12 
QuestionHow to customize(!) the file property page? Pin
elefunction8-Apr-07 12:47
elefunction8-Apr-07 12:47 
QuestionProblem using ContextMenu ? [modified] Pin
Khoramdin8-Apr-07 11:22
Khoramdin8-Apr-07 11:22 
AnswerRe: Problem using ContextMenu ? Pin
Luc Pattyn8-Apr-07 11:42
sitebuilderLuc Pattyn8-Apr-07 11:42 
QuestionFileSystemWatcher. And first hello Pin
Ylno8-Apr-07 9:39
Ylno8-Apr-07 9:39 
AnswerRe: FileSystemWatcher. And first hello Pin
Luc Pattyn8-Apr-07 11:31
sitebuilderLuc Pattyn8-Apr-07 11:31 
GeneralRe: FileSystemWatcher. And first hello Pin
Ylno8-Apr-07 12:04
Ylno8-Apr-07 12:04 
GeneralRe: FileSystemWatcher. And first hello [modified] Pin
Luc Pattyn8-Apr-07 12:20
sitebuilderLuc Pattyn8-Apr-07 12:20 
Hi, I am using a simple forms timer in my Sokoban article. Smile | :)

CORRECTION: Sokoban uses a Thread, not a Timer.

Here is some example code that causes a timer to fire 100 times
(although a period of 1 msec is specified, it will actually be much slower,
see my timers article if you're interested):

public class CPTest_FastTimer {
	System.Windows.Forms.Timer timer=new System.Windows.Forms.Timer();
	int count=0;
	DateTime start;

	public void Run() {
		start=DateTime.Now;
		log("start = "+start.ToString("HH:mm:ss.fff"));
		timer.Interval=1;
		timer.Tick+=new EventHandler(timer_Tick);
		timer.Start();
	}
 
	private void timer_Tick(object sender, EventArgs e) {
		count++;
		if (count>=100) {
			log("got "+count+" ticks between "+start.ToString("HH:mm:ss.fff")+
				" and "+DateTime.Now.ToString("HH:mm:ss.fff"));
			timer.Stop();
		}
	}
}


Smile | :)

-- modified at 20:34 Sunday 8th April, 2007

Luc Pattyn

[My Articles]

QuestionNumber by words Pin
AndrusM8-Apr-07 9:15
AndrusM8-Apr-07 9:15 
AnswerRe: Number by words Pin
Hesham Amin8-Apr-07 11:36
Hesham Amin8-Apr-07 11:36 
AnswerRe: Number by words Pin
Colin Angus Mackay8-Apr-07 12:19
Colin Angus Mackay8-Apr-07 12:19 
QuestionRemote exceptions Pin
Tauseef A8-Apr-07 7:41
Tauseef A8-Apr-07 7:41 
AnswerRe: Remote exceptions Pin
Not Active8-Apr-07 9:00
mentorNot Active8-Apr-07 9:00 
Questiontask bar issue Pin
Tauseef A8-Apr-07 7:30
Tauseef A8-Apr-07 7:30 
AnswerRe: task bar issue Pin
Not Active8-Apr-07 9:00
mentorNot Active8-Apr-07 9:00 
QuestionRe: task bar issue Pin
Tauseef A9-Apr-07 10:10
Tauseef A9-Apr-07 10:10 
Questionsql comman parameter into crystal report (Please) Pin
mehmetned8-Apr-07 7:06
mehmetned8-Apr-07 7:06 
QuestionReferencing a Form's control from a static function in another class Pin
esulin8-Apr-07 3:50
esulin8-Apr-07 3:50 
AnswerRe: Referencing a Form's control from a static function in another class Pin
Colin Angus Mackay8-Apr-07 4:31
Colin Angus Mackay8-Apr-07 4:31 
QuestionRe: Referencing a Form's control from a static function in another class [modified] Pin
esulin8-Apr-07 7:23
esulin8-Apr-07 7:23 
AnswerRe: Referencing a Form's control from a static function in another class Pin
Colin Angus Mackay8-Apr-07 15:31
Colin Angus Mackay8-Apr-07 15:31 
QuestionSendKeys and ^ Pin
Dominik Reichl8-Apr-07 2:59
Dominik Reichl8-Apr-07 2:59 
Questionhow to remote copy ? Pin
hdv2128-Apr-07 1:37
hdv2128-Apr-07 1:37 
AnswerRe: how to remote copy ? Pin
Sathesh Sakthivel8-Apr-07 2:04
Sathesh Sakthivel8-Apr-07 2:04 
GeneralRe: how to remote copy ? Pin
hdv2128-Apr-07 2:18
hdv2128-Apr-07 2:18 

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.