If you app is a MDI app it is very simple. Is it a MDI or SDI? (Now that I think about it VFP's _SCREEN works just like a MDI main form.)
If your app is SDI I can't think of a built in way to do what you want.
Einar
>Hello,
>
>I come from Visual Foxpro world and am just starting on .NET using C#. In Foxpro, there is _screen.Activeform that gets a handle to the currently active form and then for a form there's Activecontrol to indicate which control has the focus.
>I do this from a Toolbar button. Since a toolbar itself does not "get active focus", the above works quite well in determining what or where the current focus is.
>
>How can I do this in .NET ?
>
>TIA,
>
>Nitin
Semper ubi sub ubi.