Other Languages - x++ code - Asked By harini on 19-Jan-12 04:10 AM

i need code for changing the  image for every 2 seconds in form in AOT..could u plz help me out in tis.
Mackvin Pereira replied to harini on 19-Jan-12 04:34 AM
what is AOT?
harini replied to Mackvin Pereira on 19-Jan-12 04:43 AM
Application Object Tree ..it is used in morphx tool
kalpana aparnathi replied to harini on 19-Jan-12 05:12 AM
hi,

private Timer timer1;
public void InitTimer()
{
  timer1 = new Timer();
  timer1.Tick += new EventHandler(timer1_Tick);
  timer1.Interval = 2000; // in miliseconds
  timer1.Start();
}
 
private void timer1_Tick(object sender, EventArgs e)
{
  isonline()
}
harini replied to kalpana aparnathi on 19-Jan-12 05:17 AM
Thank u kalpana..where should i include image codings here and how to stop the timer?
kalpana aparnathi replied to harini on 19-Jan-12 05:31 AM
hi,

please include this code in image calling code and no need to stop because you need to change images every 2 seconds .

Thanks,
harini replied to kalpana aparnathi on 19-Jan-12 05:44 AM
hi, the scenario is like,when i click start button it should start display different images for every 2 sec and it should be stopped when i click stop button.