Click here to Skip to main content
15,906,645 members

Comments by TimGMitch (Top 2 by date)

TimGMitch 4-Oct-11 14:31pm View    
SA - Thankyou for your brave attemps to help this C# rookie. I have attempted to implement your code suggestion and my code now looks as follows:

Timer autoCloseTimer = new Timer();
autoCloseTimer.Interval = 3000;
autoCloseTimer.Enabled = true;
autoCloseTimer.Elapsed += (sender, eventArgs) =>
{
this.Invoke(new System.Action<system.windows.forms.form>((FakeMessageBox) => { FakeMessageBox.Close(); }), box);
};

I now have errors with "sender" and the "this.Invoke" statement.
TimGMitch 29-Sep-11 12:15pm View    
Excellent, thanks Bert!