Dll
I wrote a dll with forms using C# and was just wondering how I can open up one of the forms from that dll using an executable I am writing...
With what would I be able to manage to do this? Where can I start?
Thanks,
Phil.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
PhilPosted Jun 4, 2007, 5:33 PM
AlanPosted Jun 2, 2007, 6:30 PM
If your form class in the dll was inside a namespace, then add the appropriate 'using' directive to your current project.
Finally, to create an instance of your form and open it, you'll need code like this;
MyForm mf = new MyForm();
mf.Show(); // or use ShowDialog() to display the form modally