Click here to Skip to main content
16,006,341 members
Home / Discussions / C#
   

C#

 
GeneralWindows Service Pin
PrimeTime19975-Apr-05 7:16
PrimeTime19975-Apr-05 7:16 
GeneralRe: Windows Service Pin
theoutlander5-Apr-05 14:28
theoutlander5-Apr-05 14:28 
GeneralRetrieve available PC's in a domain Pin
twisted_fool5-Apr-05 3:56
twisted_fool5-Apr-05 3:56 
QuestionStatic method thread safety? Pin
Dr Herbie5-Apr-05 3:17
Dr Herbie5-Apr-05 3:17 
AnswerRe: Static method thread safety? Pin
S. Senthil Kumar5-Apr-05 4:31
S. Senthil Kumar5-Apr-05 4:31 
Generalhandling print command in windows Pin
ravitej5-Apr-05 2:54
ravitej5-Apr-05 2:54 
GeneralTimer AutoResetEvent Animation... Pin
arbrsoft5-Apr-05 2:46
arbrsoft5-Apr-05 2:46 
GeneralRe: Timer AutoResetEvent Animation... Pin
Amir Jalaly5-Apr-05 4:26
Amir Jalaly5-Apr-05 4:26 
Hi
i don't understand your problem well . if you want to create an animation by showing a picture in every constant time it would be like this :

private void StartMovie()<br />
{<br />
ptimer=new System.Windows.Forms.Timer();<br />
ptimer.Interval=10;<br />
ptimer.Tick += new EventHandler(pTimerOnTick);<br />
ptime.AutoReset = true ;<br />
ptimer.Start();<br />
}<br />
private void pTimerOnTick(object sender, EventArgs e)<br />
{<br />
if(movingK<=605&&isMoving)//till movkingK(pos_X)<605 show it's moving.<br />
{<br />
are.Set();<br />
movingK+=10;<br />
Invalidate();<br />
are.ReSet();<br />
are.WaitOne();<br />
}<br />
}


in onpaint event draw any picture that must be shown to create an animation.

why you create a new tick event handler in pTimerOnTick in else block ?
do you want to simulate the autoreset ?

Amir Jalaly
GeneralRe: Timer AutoResetEvent Animation... Pin
S. Senthil Kumar5-Apr-05 4:35
S. Senthil Kumar5-Apr-05 4:35 
Generalproblem with certificate's private key for asymmetric encryption and descryption Pin
Shiby5-Apr-05 2:04
Shiby5-Apr-05 2:04 
Generalunmanaged code Pin
Sabry19055-Apr-05 1:07
Sabry19055-Apr-05 1:07 
GeneralRe: unmanaged code Pin
yoaz5-Apr-05 9:53
yoaz5-Apr-05 9:53 
GeneralThx yoaz Pin
Sabry19055-Apr-05 21:35
Sabry19055-Apr-05 21:35 
Generalvirtual keyboard Pin
ng325-Apr-05 1:03
ng325-Apr-05 1:03 
Questionhow can i print data from dataset and output data(from datagrid) to Excel? Pin
Alenty5-Apr-05 0:57
Alenty5-Apr-05 0:57 
GeneralExcel - Late Binding Pin
marco135-Apr-05 0:43
marco135-Apr-05 0:43 
GeneralRe: Excel - Late Binding Pin
marco1311-Apr-05 3:11
marco1311-Apr-05 3:11 
GeneralOnClick?! Pin
ee990355-Apr-05 0:38
ee990355-Apr-05 0:38 
GeneralRe: onclick?! Pin
S. Senthil Kumar5-Apr-05 0:53
S. Senthil Kumar5-Apr-05 0:53 
GeneralPassing static data to several forms Pin
Baconbutty5-Apr-05 0:20
Baconbutty5-Apr-05 0:20 
GeneralRe: Passing static data to several forms Pin
S. Senthil Kumar5-Apr-05 0:58
S. Senthil Kumar5-Apr-05 0:58 
GeneralThe Critter Program Pin
nume5-Apr-05 0:12
nume5-Apr-05 0:12 
GeneralWhich book? Pin
Colin Angus Mackay5-Apr-05 0:22
Colin Angus Mackay5-Apr-05 0:22 
GeneralRe: Which book? Pin
nume5-Apr-05 20:22
nume5-Apr-05 20:22 
GeneralRe: The Critter Program Pin
Dave Kreskowiak5-Apr-05 6:43
mveDave Kreskowiak5-Apr-05 6:43 

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.