Interface that defines Enter event?

T

theinvisibleGhost

Is there an underlying interface anywhere
that .NET form controls use to include the Enter, Leave, GotFocus, and
LostFocus events?

I have a problem where I've got a usercontrol
which is being used in a Media Player Plugin.
The plugin offers C# Scripting capabilities through
an Open Source Scripting engine.

I want to detect if scripts have been changed by another program.
I've used the FileSystemWatcher with varied success,
but what I need to do now is detect when the user returns
to the Media Player and hence the UserControl plugin.
I've tried GotFocus and so on, just on the panel itself,
but the events aren't raised because of the controls on the panel.

My theory is that if I add a single eventHandler to each control on the
panel it should work, but to do this I need to be able to iterate
through
the controls on a single interface that acknowledges the .Enter
event.
 
T

theinvisibleGhost

Resolved. Blonde moment there.
Kinda obviously:-
System.Windows.Forms.Control
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top