Buttons don't show in program [modified]
-
I have something really strange happening that I want to run by you folks. Frequently when I add a new button to Form1.cs[Design] the button appears in the IDE, the button is listed in the Form1.Designer.cs, The button is not hidden or behind another form, but the button does not show in the compiled program. This happens when compiling under Vis 2005. I had thought that maybe there was a defect in my compiler so I reinstalled Vis 2005 and I get the same results. Whats really strange is when I take the same code and recompile under Vis 2008 the button appears in the compiled program and works as it should. I have now discovered that after compiling the code with Vis 2008 I can go back to Vis 2005 and recompile the code that didn't compile properly and it will compile. Vis 2005 will run properly for a while until it repeats the problem above which I find I can fix each time by running Vis 2008.
modified on Sunday, February 17, 2008 10:30 AM
-
I have something really strange happening that I want to run by you folks. Frequently when I add a new button to Form1.cs[Design] the button appears in the IDE, the button is listed in the Form1.Designer.cs, The button is not hidden or behind another form, but the button does not show in the compiled program. This happens when compiling under Vis 2005. I had thought that maybe there was a defect in my compiler so I reinstalled Vis 2005 and I get the same results. Whats really strange is when I take the same code and recompile under Vis 2008 the button appears in the compiled program and works as it should. I have now discovered that after compiling the code with Vis 2008 I can go back to Vis 2005 and recompile the code that didn't compile properly and it will compile. Vis 2005 will run properly for a while until it repeats the problem above which I find I can fix each time by running Vis 2008.
modified on Sunday, February 17, 2008 10:30 AM
Hi George, very strange indeed. I've never seen that with my Visual 2005. There are some bugs in VS2005 C# Express Edition, where Visual gets confused and I have to delete the bin and obj directories, then rebuild. You could try that. If it does not help, I Can't help you unless you send the entire project I'm afraid, so I could have a look. No guarantees though. :)
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips: - before you ask a question here, search CodeProject, then Google; - the quality and detail of your question reflects on the effectiveness of the help you are likely to get; - use PRE tags to preserve formatting when showing multi-line code snippets.
-
Hi George, very strange indeed. I've never seen that with my Visual 2005. There are some bugs in VS2005 C# Express Edition, where Visual gets confused and I have to delete the bin and obj directories, then rebuild. You could try that. If it does not help, I Can't help you unless you send the entire project I'm afraid, so I could have a look. No guarantees though. :)
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips: - before you ask a question here, search CodeProject, then Google; - the quality and detail of your question reflects on the effectiveness of the help you are likely to get; - use PRE tags to preserve formatting when showing multi-line code snippets.
-
I have something really strange happening that I want to run by you folks. Frequently when I add a new button to Form1.cs[Design] the button appears in the IDE, the button is listed in the Form1.Designer.cs, The button is not hidden or behind another form, but the button does not show in the compiled program. This happens when compiling under Vis 2005. I had thought that maybe there was a defect in my compiler so I reinstalled Vis 2005 and I get the same results. Whats really strange is when I take the same code and recompile under Vis 2008 the button appears in the compiled program and works as it should. I have now discovered that after compiling the code with Vis 2008 I can go back to Vis 2005 and recompile the code that didn't compile properly and it will compile. Vis 2005 will run properly for a while until it repeats the problem above which I find I can fix each time by running Vis 2008.
modified on Sunday, February 17, 2008 10:30 AM