Quick question for the group. I'm embedding a winforms user control into a web page. This web page is going to be launched from another page in a Modal sense. Once the user is done with the pop-up control webpage I would like the page to close automatically when the finish button is pushed. Is there a way to communicate between the html and the winforms control using javascript so that I don't have to have a two button scenario where the user pushes finish then pushes Ok outside of the control Any help would be appreciated.

Winforms+JavaScript
Mark Grinols MSFT
Lester Hewett
[assembly: ClassInterface(ClassInterfaceType.AutoDual)]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, UnmanagedCode = true)]
[ComVisible(true)]
[ClassInterface(ClassInterfaceType.None)]
DevonSprings
I've followed every part of that article and I am unable to get it to work. For some reason the event is always equal to null and therefore never has any action taken against it. Has anybody successfully dealth with this and if so how did you do it.
Eric
Duane Ferrell
I'm afraid that is not possible, because the browser, after it launched the WinForm, can no longer track (or attach an event handler) to the WinForm it shown.
Regards,
-chris