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. Windows Forms
  4. Form Design Error

Form Design Error

Scheduled Pinned Locked Moved Windows Forms
helpdesign
4 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.
  • M Offline
    M Offline
    mirzamujib
    wrote on last edited by
    #1

    Hi, Kindly help me, i took textbox from one of my other project into my current project but whenevr i click on Form Design its showing me this errors: The variable TextBox1 is either undeclared or was never assigned Plzzz help me... Thank you

    L 2 Replies Last reply
    0
    • M mirzamujib

      Hi, Kindly help me, i took textbox from one of my other project into my current project but whenevr i click on Form Design its showing me this errors: The variable TextBox1 is either undeclared or was never assigned Plzzz help me... Thank you

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      mirzamujib wrote:

      The variable TextBox1 is either undeclared or was never assigned

      That's a fairly clear error message. Somewher in your copying you have omitted an allocation or reference so the main form does not have a variable called TextBox1. Take a look at the form and also the code behind to see which parts are missing. You would probably have found it simpler to add a new text box from scratch rather than doing it this way.

      M 1 Reply Last reply
      0
      • L Lost User

        mirzamujib wrote:

        The variable TextBox1 is either undeclared or was never assigned

        That's a fairly clear error message. Somewher in your copying you have omitted an allocation or reference so the main form does not have a variable called TextBox1. Take a look at the form and also the code behind to see which parts are missing. You would probably have found it simpler to add a new text box from scratch rather than doing it this way.

        M Offline
        M Offline
        mirzamujib
        wrote on last edited by
        #3

        Thanks a lot....

        1 Reply Last reply
        0
        • M mirzamujib

          Hi, Kindly help me, i took textbox from one of my other project into my current project but whenevr i click on Form Design its showing me this errors: The variable TextBox1 is either undeclared or was never assigned Plzzz help me... Thank you

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Delete the textbox and copy it again. Sometimes, Visual Studio suffers from selective amnesia in that it copies only a part of the code and leaves the rest.

          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