Skip to content

Capturing the focus event for a window

wayne singh

Asked Aug 9, 2006, 9:09 PM EDT1 answer
Share
LinkedInX
Hi All, I am fairly new to C# and am having an issue that I cant seem to find any info on. How do I capture the focus event for a Form? Basically I have a thread happening on a Form, and if the user clicks on another window and then clicks back on my window I no longer have a mouse busy cursor. I would like to capture this event and if the thread is still running then change the mouse cursor back to a Busy cursor. Any help woudl really be appreciated. Thank you.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Ignore I think I found it: this.GotFocus += new EventHandler(ArchiveFile_GotFocus);
    0