12-26-2003, 07:17 PM
I want to create a dll but in one of the function of this dll I must show a form. How can I add form to dll? If we can not do that pls give me a suggestion.
Thanks a lot for all your helps.
12-26-2003, 07:28 PM
Can you just create a method within your .dll that accepts a form as input and pass it your form to show from your other form or from a module. Your kind of vague on what your doing. But try that if that makes sense.
i did this with a module and a class
showing form2 by passing it to the class. But why not just show it from somewhere else? Why does it have to be in the .dll? Or are you trying to create a custom form from within your .dll?
Public Sub main()
Dim Show As New Class1
Dim frm As New Form2
'this would be compiled into a .dll
Public Class Class1
Public Sub New()
Public Function ShowForm(ByVal Showit As Form)
12-26-2003, 08:20 PM
You should be able to add a form to a DLL just like any other project.