Folks,
Sorry to take up bandwidth, but for the life of me I cannot see the syntax
error in this code:
Timer myTimer = new Timer();
myTimer.Tick += delegate {
stopWaiting = true;
};
The compiler error indicates that the parser is exepcting a "}" at the "."
in the second line. This is the first error in the source file.
By the way, the same error is thrown if I use either of these two variations:
myTimer.Tick += delegate() {
stopWaiting = true;
};
myTimer.Tick += delegate(object sender, EventArgs e) {
stopWaiting = true;
};
Thanks in advance for your assistance.
/Joel Finkel
fi****@sd-il.com