Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Having a form in a VB.NET DLL file?

Having a form in a VB.NET DLL file?

Scheduled Pinned Locked Moved Visual Basic
csharphelptutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    LloydA111
    wrote on last edited by
    #1

    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.

    M 1 Reply Last reply
    0
    • L LloydA111

      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.

      M Offline
      M Offline
      Mitch F
      wrote on last edited by
      #2

      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)

      L 1 Reply Last reply
      0
      • M Mitch F

        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)

        L Offline
        L Offline
        LloydA111
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups