dll
-
i have a vb 6 activex dll and i am able to run a form inside of the dll is it possible to do the same thing in csharp ( run a form from a dll) or is there no UI in csharps DLLs?
Thanks, Chad Aiena
You can just wrap up your form inside the DLL. As the form is just another class, you can pretty much do what you want with it (well, within reason).
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before. -
You can just wrap up your form inside the DLL. As the form is just another class, you can pretty much do what you want with it (well, within reason).
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.can you give me a quick code snip of how i would put it in the dll (sorry i am still learning csharp) or something like this but how to i show it using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; namespace dllform { public class Class1 { Form test = new Form() } }
Thanks, Chad Aiena
-
can you give me a quick code snip of how i would put it in the dll (sorry i am still learning csharp) or something like this but how to i show it using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; namespace dllform { public class Class1 { Form test = new Form() } }
Thanks, Chad Aiena
I'll tell you how to do one for yourself. Start off by developing a form in the designer as an executable. You can then change the application type to DLL in the project properties. Compile it up and you have a form inside a DLL. Next, create a new project and reference the DLL. Then, in your code you just need to call the form. To do this (assuming your form is called MyDllForm in the namespace MyNamespace):
MyNamespace.MyDllForm form = new MyNamespace.MyDllForm(); form.Show();
I hope that helps.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.