Hi,
in my windows form I deleted the text box, in the design file, and put a combobox instead. But when I run the application I see again the textbox, not the combobox. Even if I only delete the textbox and put nothing, I still see the textbox. Can anybody tell me please what is the problem?
Thanks
Loading
VulpesPosted Aug 29, 2011, 6:10 PM
First try exiting out of VS completely, going back in and rebuilding the solution.
In the unlikely event that you have other files which contain code for the textbox or combobox, do the same for them as for Form1.cs.
NelPosted Aug 30, 2011, 3:59 AM
Sam HobbsPosted Aug 29, 2011, 9:15 PM
If you have been messing with the date and time for your computer, then that could cause the problem. A rebuild will solve it.
If the date and time of the executable is further in the past than you expect, then it could mean that VS is confused and building the wrong thing.
If none of that solves the problem, then I would put something in the code that can determine for sure that the build is doing what it should. For example I might put a MessageBox in the form load event. If that last change shows that the build is being done, then I would proceed as Vulpes suggests.
Hopefully you haved already solved the problem and everything I said is not relevant.