Click here to Skip to main content
15,899,126 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Recently I changed a lot of properties on my C#4.0 app, now I'm adding some new Text Boxes to my main form as well as pieces of code but it is not working, the text boxes not even appear. Question: "What could be happening?"
Posted
Comments
[no name] 26-Nov-10 19:38pm    
Add how are you adding the textboxes? Showing some of what you are doing may be helpful since we can't read your mind and not able to look over your shoulder
Sandeep Mewara 26-Nov-10 23:48pm    
Update from OP:

Suppose you are in the editing mode of a winform and you want to add a text box in that form with just drag and drop from your toolbox. When you run the app the recently added textbox doesn't appear
fjdiewornncalwe 27-Nov-10 0:49am    
If you have messed up your codebase with a bunch of changes, you may not have a lot of choice but to revert the changes and break the job into smaller pieces. Do the properties in one class, for example, and then ensure that everything is running ok. Then make an update to one textbox... Try running again to ensure it is working... Rinse and Repeat as necessary... Cheers.

Option 1 (Most Probably):
Reinstall Visual Studio.

Option 2:
If it's custom textboxes - rebuild your infrastructure / framework.

Option 3:
Create a new project.

Regards,
Chris

:doh:
 
Share this answer
 
Comments
fjdiewornncalwe 27-Nov-10 0:34am    
Really.. You're suggesting he reinstall his VS environment... I want to have what you're smoking, dude!!!
xcorporation 27-Nov-10 4:10am    
He can't revert to default settings as these has been corrupted by his fiddlings.

Therefore ... the writing is on the wall
fjdiewornncalwe 29-Nov-10 14:50pm    
He's messed up his "Project" settings, not his environment options
xcorporation 29-Nov-10 14:53pm    
then Option 3 is applicable
First you see the .aspx.Designer.cs Page.
I think there is not create the textcontrol name. so, it is not working..
So, you manually write the code to designer.Cs page.

then it will work.. try this way...

VB
/// <summary>
  /// txtSenderId control.
  /// </summary>
  /// <remarks>
  /// Auto-generated field.
  /// To modify move field declaration from designer file to code-behind file.
  /// </remarks>
  protected global::System.Web.UI.WebControls.TextBox txtSenderId;
 
Share this answer
 
Comments
Toli Cuturicu 27-Nov-10 13:20pm    
Did anybody say anything about web programming...?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900