When I change the button caption in design view, it is reflected in the code
of that form. I don't see any inconsistencies.
Another thing is the debugger acts weird on this form. It will stop on
blank lines and highlight in between lines. Sometimes it will highlight a
blank section or line of code that sets a value. On the next line I look at
the variable value and it isn't set. The debugger is giving incorrect info.
I actually created a new form. The only elements needed were a button,
timer, and label. I added them all and gave them the same name as my old
form. The new form file is a different name as is the form name. I put the
new form as startup. Still the old form appeared. I then deleted the form
but it still appears when I start the app. Any ideas?
If nothing else, looks like I'll have to create a new project and started
adding things back in piece by piece and watch the results after each
addition.
Thanks,
Brett
"Joseph MCAD" <Jo********@discussions.microsoft.com> wrote in message
news:E8**********************************@microsof t.com...
April 7, 2005
I once had that happen when I modified the auto generated code for the
form. I modified the method declarations (I believe the
InitializeComponent)
with a Overrides or Overloads keyword. I can't quite remember, but make
sure
the auto generated code is using the same Name as in the design view and
just
overall check for any inconsistancies. You could also look and see if the
settings you changed in design view are reflected in the code behind file.
Hope this helps! :-)
Joseph
MCAD
"Brett" wrote:
I have a button on a form. I've changed its text to "Exitl". However,
when
I run the app, the button text is "Exit". How could that happen? It's
the
only form in this app.
I also have the timer on this form set for 2 second intervals. However,
the
timer constantly fires. I use to have it set at .2 seconds. Seems the
old
form is loading at run time.
Thanks,
Brett