having a windows form inside a class library?

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
5 posts Page 1 of 1
Contributors
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

how can I have a windows form inside my class library so that I can run the windows form from the dll.
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

You could declare a function in the DLL to create/display the form.
Code: Select all
    Public Sub test()

        Dim f As Form = New Form()
        f.ShowDialog()
    End Sub
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

mandai wrote:
You could declare a function in the DLL to create/display the form.
Code: Select all
    Public Sub test()

        Dim f As Form = New Form()
        f.ShowDialog()
    End Sub
Like I made a new form using the IDE, though it doesn't let me set it to show at startup, and It only lets me use usercontrols.
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
M1z23R
VIP - Donator
VIP - Donator
Posts: 622
Joined: Tue Sep 28, 2010 4:55 pm

You mean, make Form Dll (In simple words) ? That can probably be done, wait for mandai to see my post :) I Think he misunderstood you...
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

I just decided to make a function execute it as he did, so thanks anyways.
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
5 posts Page 1 of 1
Return to “Coding Help & Support”