Create dll.

carnation
12-26-2003, 07:17 PM
Hi there,

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.

AFterlife
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?


Module Module1
Public Sub main()
Dim Show As New Class1
Dim frm As New Form2
Show.ShowForm(frm)
End Sub
End Module
'this would be compiled into a .dll
Public Class Class1
Public Sub New()

End Sub
Public Function ShowForm(ByVal Showit As Form)


Showit.ShowDialog()


End Function


End Class

Optikal
12-26-2003, 08:20 PM
You should be able to add a form to a DLL just like any other project.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum