Having a form in a VB.NET DLL file?
-
Hiya, I was just wondering if it was possible to have a form inside a VB.NET dll made in VB 2008?? I can click on Project|Add Windows form... but when I type something like "Form1.Show" it says: "Reference to a non-shared member requires an object Reference". So I'm guessing I would have to somehow make the Form "A shared member" but I dont know how to do this. Any help will be greatly helpful, Thanks Lloyd A. P.S. I've honestly tried looking on the internet on this subject but I was unsuccesful in finding anything helpful.
Lloyd J. Atkinson "Logic will get you from A to B, but imagination will take you everywhere" - ALbert Einstein The most annoying thing about Microsoft is its obsession with change.
-
Hiya, I was just wondering if it was possible to have a form inside a VB.NET dll made in VB 2008?? I can click on Project|Add Windows form... but when I type something like "Form1.Show" it says: "Reference to a non-shared member requires an object Reference". So I'm guessing I would have to somehow make the Form "A shared member" but I dont know how to do this. Any help will be greatly helpful, Thanks Lloyd A. P.S. I've honestly tried looking on the internet on this subject but I was unsuccesful in finding anything helpful.
Lloyd J. Atkinson "Logic will get you from A to B, but imagination will take you everywhere" - ALbert Einstein The most annoying thing about Microsoft is its obsession with change.
-
I haven't actually tried to do that before, but you would normally use something similar to the code below to open up a new form.
Dim frmNew As New Form1 frmNew.Show()
(I'm writing this from memory, I don't have VS open right now)Hiya, This seems to work, thanks, I didnt know that it was as simple to use forms in DLL files! Thanks again! :)
Lloyd J. Atkinson "Logic will get you from A to B, but imagination will take you everywhere" - ALbert Einstein The most annoying thing about Microsoft is its obsession with change.