Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Form Design Error

Started 1 month, 4 weeks ago by 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
Site: CodeProject: Discussion Boards. Free source code and programming help  CodeProject: Discussion Boards. Free source code and programming help - site profile
Forum: Windows Forms  Windows Forms - forum profile
Total authors: 3 authors
Total thread posts: 4 posts
Thread activity: no new posts during last week
Domain info for: codeproject.com

Other posts in this thread:

Richard MacCutchan replied 1 month, 4 weeks ago
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 ...

mirzamujib replied 1 month, 4 weeks ago
Thanks a lot....

Shameel replied 1 month, 4 weeks ago
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.

 

Top contributing authors

Name
Posts
mirzamujib
2
user's latest post:
Form Design Error
Published (2009-11-04 08:54:00)
Thanks a lot....
Richard MacCutchan
1
user's latest post:
Form Design Error
Published (2009-11-04 05:39:00)
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.
Shameel
1
user's latest post:
Form Design Error
Published (2009-11-04 10:09:00)
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.

Related threads on "CodeProject: Discussion Boards. Free source code and programming help":

Related threads on other sites:

Thread profile page for "Form Design Error" on http://www.codeproject.com. This report page is a snippet summary view from a single thread "Form Design Error", located on the Message Board at http://www.codeproject.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity