Hey guys,
I have a process that transfers data from one computer to another. When the process completes, I want to show, in a statusbar at the bottom of the screen, "Transfer Complete". However, after the user clicks anywhere on the application, I want the statusbar to then say "Idle".
This is because the transfer often takes a long time and people leave the computer and come back, but don't know if the transfer has completed successfully or not (well, the app would give an error if it failed, but my superiors want this feature).
I was thinking of adding an event for Click, so that the event would be set (+=) when the transfer completes, and when the user fires the event, it removes itself. See below:
CODE
toolStripStatusCurrentECU.Text = "Transfer Complete";
this.Click += new System.EventHandler(this.TransferStatus_Click);
Then, down in the code...
CODE
private void TransferStatus_Click(object sender, EventArgs e)
{
toolStripStatusCurrentECU.Text = "Idle";
this.Click -= new System.EventHandler(this.TransferStatus_Click);
}
My problem is that the event never fires! Thoughts?