I have a third-party code library that I use; part of this library is a winforms application for editing the configuration files used by this library. I would like to insert their application for the configuration editor into my application.
I have the source code for their library, and the configuration editor (as far as I can tell) the direct Winforms application uses standard controls. I am trying to convert the main form of the application to UserControl so that I can place it inside my application, which is WPF (WPF. WindowsFormsHost will not place the Form object, I get an exception).
I changed the form object to inherit from UserControl instead of Form and fixed all the compiler errors (there were few of them, just initializing properties that are not in UserControls), but what happens is that my recently converted control is empty.
When I run my test application, I do not see any controls that make up the original form, just a blank page.
Any ideas? I really do not want to re-implement my application from scratch, it suck.
Edit: I forgot to mention that I am testing this in a WinForms application and not in WPF, just to get the control to work before trying to use it from WPF.
source share