Click here to Skip to main content
15,900,511 members
Home / Discussions / C#
   

C#

 
Generalcrystal report pictures Pin
kornstyle7-Jul-05 8:50
kornstyle7-Jul-05 8:50 
GeneralGlobally intercepting keyboard events and blocking them if required Pin
Florian Albrechtskirchinger7-Jul-05 8:39
Florian Albrechtskirchinger7-Jul-05 8:39 
GeneralRe: Globally intercepting keyboard events and blocking them if required Pin
Dave Kreskowiak7-Jul-05 9:54
mveDave Kreskowiak7-Jul-05 9:54 
GeneralRe: Globally intercepting keyboard events and blocking them if required Pin
Florian Albrechtskirchinger8-Jul-05 2:57
Florian Albrechtskirchinger8-Jul-05 2:57 
GeneralRe: Globally intercepting keyboard events and blocking them if required Pin
Dave Kreskowiak8-Jul-05 3:55
mveDave Kreskowiak8-Jul-05 3:55 
GeneralRe: Globally intercepting keyboard events and blocking them if required Pin
Florian Albrechtskirchinger9-Jul-05 4:30
Florian Albrechtskirchinger9-Jul-05 4:30 
GeneralRe: Globally intercepting keyboard events and blocking them if required Pin
Florian Albrechtskirchinger13-Jul-05 7:43
Florian Albrechtskirchinger13-Jul-05 7:43 
QuestionTimeSpans as Int's? Pin
YawgmothIII7-Jul-05 5:48
YawgmothIII7-Jul-05 5:48 
Ok i need to know how to figure out how many milliseconds have passed over a period of time. I do this with two... "time stamps" - dtmCurrent & dtmPrevious - I then just subtract (dtmCurrent-dtmPrevious) and i get a TimeSpan. How do i convert that TimeSpan into an int? I need that int to be how many milliseconds have passed in that TimeSpan, though.

Of course if there is a better way to do this... without a timer... then i'm all up for suggestions. Big Grin | :-D

Here's a snipet of my code thats used.

bool FirstRun = true;<br />
		DateTime dtmCurrent;<br />
		DateTime dtmPrevious;<br />
<br />
		private void MainGame()<br />
		{<br />
			if (FirstRun == true)<br />
			{<br />
				this.ObjectEngine.Create_Unit(1,0,1,400,400,0);<br />
				FirstRun = false;<br />
				dtmCurrent = DateTime.Now;<br />
			}<br />
			dtmPrevious = dtmCurrent;<br />
			dtmCurrent = DateTime.Now;<br />
			<br />
			for (int i=0; i<ObjectEngine.ActiveUnitQPt; i++)<br />
			{<br />
				Sprite_Update((dtmCurrent - dtmPrevious), i);<br />
			}<br />
			SpriteEngine.Draw();<br />
		}

AnswerRe: TimeSpans as Int's? Pin
leppie7-Jul-05 6:00
leppie7-Jul-05 6:00 
QuestionIs Someone aware of this Error? Pin
just4ulove77-Jul-05 5:45
just4ulove77-Jul-05 5:45 
AnswerRe: Is Someone aware of this Error? Pin
Alomgir Miah7-Jul-05 5:57
Alomgir Miah7-Jul-05 5:57 
GeneralRe: Is Someone aware of this Error? Pin
just4ulove77-Jul-05 7:48
just4ulove77-Jul-05 7:48 
GeneralRe: Is Someone aware of this Error? Pin
Guffa7-Jul-05 7:55
Guffa7-Jul-05 7:55 
GeneralRe: Is Someone aware of this Error? Pin
just4ulove77-Jul-05 7:59
just4ulove77-Jul-05 7:59 
GeneralRe: Is Someone aware of this Error? Pin
Guffa7-Jul-05 8:20
Guffa7-Jul-05 8:20 
GeneralRe: Is Someone aware of this Error? Pin
Dave Kreskowiak7-Jul-05 8:02
mveDave Kreskowiak7-Jul-05 8:02 
GeneralRe: Is Someone aware of this Error? Pin
just4ulove77-Jul-05 8:06
just4ulove77-Jul-05 8:06 
GeneralRe: Is Someone aware of this Error? Pin
Dave Kreskowiak7-Jul-05 9:45
mveDave Kreskowiak7-Jul-05 9:45 
AnswerRe: Is Someone aware of this Error? Pin
Guffa7-Jul-05 6:25
Guffa7-Jul-05 6:25 
GeneralDataTable Tree Question Pin
Markus1980Wien7-Jul-05 4:46
Markus1980Wien7-Jul-05 4:46 
GeneralRe: DataTable Tree Question Pin
Alomgir Miah7-Jul-05 5:10
Alomgir Miah7-Jul-05 5:10 
GeneralRe: DataTable Tree Question Pin
Markus1980Wien7-Jul-05 7:23
Markus1980Wien7-Jul-05 7:23 
GeneralRe: DataTable Tree Question Pin
Alomgir Miah7-Jul-05 7:55
Alomgir Miah7-Jul-05 7:55 
GeneralWatching for a file Pin
Andy *M*7-Jul-05 3:50
Andy *M*7-Jul-05 3:50 
GeneralRe: Watching for a file Pin
Guffa7-Jul-05 3:55
Guffa7-Jul-05 3:55 

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.