Groups | Blog | Home
all groups > vb.net > april 2005 >

vb.net : Why aren't changes on form?


Joseph MCAD
4/7/2005 8:53:07 PM
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



[quoted text, click to view]
Brett
4/7/2005 11:28:04 PM
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

Cor Ligthert
4/8/2005 12:00:00 AM
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

Herfried K. Wagner [MVP]
4/8/2005 12:00:00 AM
"Brett" <no@spam.net> schrieb:
[quoted text, click to view]

Are you sure the button is wide enough to show the "l" character?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Cor Ligthert
4/8/2005 12:00:00 AM
Herfried,
[quoted text, click to view]

Can be

:-)

Cor

Brett
4/8/2005 6:38:14 AM
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

[quoted text, click to view]

Brett
4/8/2005 6:39:27 AM

[quoted text, click to view]

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

Brett
4/8/2005 6:39:46 AM

[quoted text, click to view]

Yes.

Brett
4/8/2005 8:52:26 PM
After did a build rather than run, everything was ok.


[quoted text, click to view]

AddThis Social Bookmark Button