Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i created a project and executed well in c#, after some time even we add any buttons or any changes to that project, the changes are not visible in output form , but when stop executing all the code and buttons are visible what you i do now

What I have tried:

i tried in several days but i cant get the correct way
Posted
Updated 6-Feb-17 0:03am

1 solution

We can't be specific, but start by looking at the basics (and I apologize if these are too basic - but I have no idea of your skill level):
1) Does it compile without any errors? If it doesn't, then an executable will not be generated, so you will see no changes.
2) Are you executing the right EXE file? If you are executing it directly from windows, then check the properties of the properties of the file you are executing, and make sure it's up to date: if you have a shortcut on your desktop to the release version but you are building the debug version instead, you will again see no changes.
3) Are you executing the right project? A Solution file can have many projects, but only one is the Startup project. If you are editing a different projects files, then you may not see the changes in your executable.
4) Clean all projects, and do a full rebuild. Then run it in the debugger and see what happens. Do you get to hit breakpoints in your Form.Load event handler? What about the Form.Shown handler?

Sorry, but we can't say "do this and it'll fix it": we don't have access to your HDD, we can't see your screen, and we can't read your mind - so you are going to have to do all the "leg work" on this one for us!
 
Share this answer
 
Comments
Michael_Davies 6-Feb-17 5:09am    
I'd add make sure that the controls .Visible=true and .Enabled=true as well.
Member 12941572 6-Feb-17 5:09am    
yess sir we have exe file and as well as my project program if i want to add more features to the web form or remove some from existing file the changes are saved in the file in visual studio but if we execute the program the changes are not executed and the program is executed as same as previous (i..e, with out any changes ) file
OriginalGriff 6-Feb-17 5:15am    
Slow down - check the details, because they are important. You have started off talking about Windows forms, now you mention web forms - they are not the same beasties!
What exe file are you executing, and exactly how do you execute it?
Member 12941572 6-Feb-17 5:25am    
come on sir ....! i think you didnt understand my question or else i am unable to explain my doubt clearly to all of you what ever it may be

i am designing a webpage by using windows form in c# in visual studio 10 , i designed something and when we run the program it will be executed with out any fault.. but the problem is now i add few more buttons and checklists to that windows form and start executing that project ... but it executes previous form only new changes are not displayed on output screen.. hope you get my problem
OriginalGriff 6-Feb-17 5:37am    
That's why I'm trying to get you to clarify exactly what you are doing!
A webpage doesn't use "windows forms" so you need to tell us exactly what environment you are using. When you give us the wrong information, it means we come to the wrong conclusions about what you are doing wrong. And as I mentioned, we can't see your screen!
So if it isn't a WinForms project, stop describing them as "windows forms"! They are "web pages" designed within Visual studio, and that means that the environment you are working in is vastly different - and the problems that might cause this are vastly different as well!
So don't get on your high horse because I don't understand exactly what you are doing - I'm several thousand miles away from you, and can only work from exactly what you tell me! OK?

So tell me exactly what you do - and I mean exactly, I need every detail - from adding a button to a page, and exactly how you test it from that point on, and what you see.

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