Click here to Skip to main content
15,922,512 members
Home / Discussions / C#
   

C#

 
QuestionHow to call Orcale FORM (fmx.exe) file from C# Pin
shafqaat23-Nov-05 17:58
shafqaat23-Nov-05 17:58 
QuestionDirectory Rename Pin
rakesh_nits23-Nov-05 17:54
rakesh_nits23-Nov-05 17:54 
AnswerRe: Directory Rename Pin
shafqaat23-Nov-05 18:00
shafqaat23-Nov-05 18:00 
GeneralRe: Directory Rename Pin
rakesh_nits23-Nov-05 19:09
rakesh_nits23-Nov-05 19:09 
GeneralRe: Directory Rename Pin
Curtis Schlak.23-Nov-05 19:26
Curtis Schlak.23-Nov-05 19:26 
GeneralRe: Directory Rename Pin
rakesh_nits23-Nov-05 21:05
rakesh_nits23-Nov-05 21:05 
GeneralRe: Directory Rename Pin
shafqaat23-Nov-05 19:46
shafqaat23-Nov-05 19:46 
QuestionTimer Bug!!! :mad: Full code included run it and see. Plz comment why this could be hapening. Pin
serguey_haftrige23-Nov-05 17:16
serguey_haftrige23-Nov-05 17:16 
I have experienced this bug while doing a project on video playbak.(plz give any solution) if you set the interval to 1000 ms it work correctly and the lbl show 1 ms then if you set it to 33.3 the interval is 46.0
and her is a list of values i get
set | get
---------
15< | 15
15 | 15
16 | switch between 15 and 31
17 | 31
...
31 | 31
32 | switch between 31 and 46
...
46 | 46
47 | switch between 46 and 62

as you we can see the resolution here appears to be 15~16 but to my knowledge the resolution should be 900 us. please advise if there is any timer with a better resolution,thx
<code>

using System;
using System.Windows.Forms;
using System.Drawing;
using System.Timers;

class TimerDemo:Form
{
	System.Timers.Timer timerClock;
	DateTime dtTimeStamp;
	TimeSpan tsEllapsedTime;
	Label lblTimeDiff;
	public TimerDemo()
	{
		lblTimeDiff=new Label();
		this.Controls.Add(lblTimeDiff);
		
		timerClock=new System.Timers.Timer();
		timerClock.Interval=33.3;
		timerClock.Elapsed+=new ElapsedEventHandler(timeElapsed);
		timerClock.Enabled=true;
		dtTimeStamp=DateTime.Now;

	}

	private  void timeElapsed(object sender, ElapsedEventArgs e)
	{
		tsEllapsedTime = DateTime.Now-dtTimeStamp;
		lblTimeDiff.Text= tsEllapsedTime.Seconds.ToString()+":"+tsEllapsedTime.Milliseconds.ToString();
		dtTimeStamp = DateTime.Now;
	}
	public static void Main()
	{
		Application.Run(new TimerDemo());
	}
}
</code>
Mad | :mad:
AnswerRe: Timer Bug!!! :mad: Full code included run it and see. Plz comment why this could be hapening. Pin
J4amieC23-Nov-05 22:10
J4amieC23-Nov-05 22:10 
QuestionRetrieving real-time info from bank website Pin
neax23-Nov-05 16:04
neax23-Nov-05 16:04 
AnswerRe: Retrieving real-time info from bank website Pin
Mark DeVol29-Nov-05 12:15
Mark DeVol29-Nov-05 12:15 
QuestionRe: Retrieving real-time info from bank website Pin
neax29-Nov-05 12:19
neax29-Nov-05 12:19 
AnswerRe: Retrieving real-time info from bank website Pin
Mark DeVol29-Nov-05 12:33
Mark DeVol29-Nov-05 12:33 
QuestionIEnumerable and IEnumerator Pin
Alex Cutovoi23-Nov-05 15:32
Alex Cutovoi23-Nov-05 15:32 
QuestionIEnumerable and IEnumerator Pin
Alex Cutovoi23-Nov-05 15:31
Alex Cutovoi23-Nov-05 15:31 
Questionselect date into the textbox Pin
momoo23-Nov-05 13:53
momoo23-Nov-05 13:53 
AnswerRe: select date into the textbox Pin
Christian Graus23-Nov-05 14:37
protectorChristian Graus23-Nov-05 14:37 
Questionprocess.start Pin
Sam 200623-Nov-05 11:51
Sam 200623-Nov-05 11:51 
AnswerRe: process.start Pin
Curtis Schlak.23-Nov-05 12:03
Curtis Schlak.23-Nov-05 12:03 
QuestionDelegates and events Pin
mirano23-Nov-05 9:21
mirano23-Nov-05 9:21 
AnswerRe: Delegates and events Pin
Leslie Sanford23-Nov-05 11:46
Leslie Sanford23-Nov-05 11:46 
GeneralRe: Delegates and events Pin
mirano23-Nov-05 13:00
mirano23-Nov-05 13:00 
GeneralRe: Delegates and events Pin
Leslie Sanford23-Nov-05 13:23
Leslie Sanford23-Nov-05 13:23 
GeneralRe: Delegates and events Pin
mirano26-Nov-05 6:19
mirano26-Nov-05 6:19 
GeneralRe: Delegates and events Pin
Leslie Sanford26-Nov-05 7:08
Leslie Sanford26-Nov-05 7: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.