Why aren't changes on form?

  • Thread starter Thread starter Brett
  • Start date Start date
B

Brett

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
 
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,

Can you show us the code where you change that name.

The timers will fire constantly as long as they are enbled. So that is
correct. My first statement in a fire event is always to disable it.

I hope this helps,

Cor
 
Brett said:
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.

Are you sure the button is wide enough to show the "l" character?
 
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
 
Cor Ligthert said:
Brett,

Can you show us the code where you change that name.

The timers will fire constantly as long as they are enbled. So that is
correct. My first statement in a fire event is always to disable it.

The timer will fire constantly but I mean it fires at every 200 interval
rather than 2000. It fires much quicker than I have it set to. The app is
running code from the old form, which is set at 200.

Brett
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top