In a class I have a while loop that sends out an event while test is true as follows:
while(test)
{
PeriodFire(this, new PeriodEventArgs(true));
}
In another class I consume the event and do some graphical work on it.
this.timer1.PeriodFire += new ABIS.PeriodEventHandler(TimerOnTick);
public void TimerOnTick()
{
.... Do some graphical work
Application.DoEvents();
}
I am also using the keyboard Events KeyDown() and KeyPress() to do some work.
The problem I am having is that the keyboard events are not being fired. Or if they are, it is only once now and then.
Any suggestions on why would be appreciated.
with regards

While Loops and Keyboard Events
burrowsUW
Luis Simões
This graphical work - is it time consuming If so, it may be advisable to take it to a different thread.
Project Ebiru
Hope this is useful to whoever comes across this.
cheers.
Mike Ogilvie