Here is a way to do this, from within the WPF UserControl , which has a button in it:
private void button1_Click(object sender, RoutedEventArgs e) { var source = (HwndSource)PresentationSource.FromDependencyObject(button1); var host = (Forms.Integration.ElementHost)Forms.Control.FromChildHandle(source.Handle); var form = (Forms.Form)host.TopLevelControl;
(there is an alias for System.Windows.Forms in this Forms code)
Thomas levesque
source share