I need to instantiate a Winform within another project. How is this done? I am currently attempting to chain the default constructor. It seems that my custom constructor is not called.
Also.. the entry point for this application will not be in the project that owns this form. Meaning the following will not run:
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new HtmlTestForm());
I am not entirely sure what this code is doing. Will the form still function?
private HtmlTestForm()
{
InitializeComponent();
OpenBrowser(new Uri(TestURL));
}
public HtmlTestForm(Uri uri)
:this()
{
TestURL = uri;
}
//New up form in another project.
HtmlTestForm form = new HtmlTestForm(new Uri("http://SomeUri.html"));