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. Want to inherit one property to another

Want to inherit one property to another

Scheduled Pinned Locked Moved Visual Basic
designhelp
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.
  • B Offline
    B Offline
    Brad
    wrote on last edited by
    #1

    Hi, I need to inherit my Form2 to Form3, when i use 'Inherits Form2' my form3 doesnt show up and I get this error message and I cannot view my Form3 design at all! Warning 1 The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: Form3 --- The base class 'WindowsApplication1.Form2' could not be loaded. Ensure the assembly has been referenced and that all projects have been built. 0 0 All i want to do is use some text out of a textbox in form2 and display it in a label on form3 Many thanks, Brad

    B 1 Reply Last reply
    0
    • B Brad

      Hi, I need to inherit my Form2 to Form3, when i use 'Inherits Form2' my form3 doesnt show up and I get this error message and I cannot view my Form3 design at all! Warning 1 The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: Form3 --- The base class 'WindowsApplication1.Form2' could not be loaded. Ensure the assembly has been referenced and that all projects have been built. 0 0 All i want to do is use some text out of a textbox in form2 and display it in a label on form3 Many thanks, Brad

      B Offline
      B Offline
      BrokenS
      wrote on last edited by
      #2

      Brad, Try this: vb.net 2003: declare an instance of Form2 in Form3 Dim newForm2 As New Form2 label.text = newForm2.textbox.Text vb.net 2005: no need to declare an instance of Form2 in Form3 label.text = Form2.textbox.Text Hope this helps. Ken

      B 1 Reply Last reply
      0
      • B BrokenS

        Brad, Try this: vb.net 2003: declare an instance of Form2 in Form3 Dim newForm2 As New Form2 label.text = newForm2.textbox.Text vb.net 2005: no need to declare an instance of Form2 in Form3 label.text = Form2.textbox.Text Hope this helps. Ken

        B Offline
        B Offline
        Brad
        wrote on last edited by
        #3

        Much love x Thanks man! (y)

        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