473,387 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Why aren't changes on form?

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
Nov 21 '05 #1
8 1103
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

Nov 21 '05 #2
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
Nov 21 '05 #3
"Brett" <no@spam.net> schrieb:
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?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4
Herfried,

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


Can be

:-)

Cor
Nov 21 '05 #5
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

Nov 21 '05 #6

"Cor Ligthert" <no************@planet.nl> wrote in message
news:Od**************@TK2MSFTNGP14.phx.gbl...
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
Nov 21 '05 #7

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
"Brett" <no@spam.net> schrieb:
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?


Yes.
Nov 21 '05 #8
After did a build rather than run, everything was ok.
"Brett" <no@spam.net> wrote in message
news:eN****************@tk2msftngp13.phx.gbl...
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

Nov 21 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: John | last post by:
(access 2002) Anyone have any suggestions as to what may be causing access to not save form changes after I "tell" it to, exit database, then re-open later to discover the changes had not been...
3
by: Jeremy Smith | last post by:
I have a Access 2K2 db that is used on the network. I have a main form that dependant upon the selected option loads the appropriate subform. when it does this several label captions change to...
4
by: Peter Proost | last post by:
Hello group, what would be the best way to do the next thing: I've got a grid form with about 15000 records, when I double click a row a detail form is opened and the user can modify and save...
3
by: Mad Scientist Jr | last post by:
I'm trying to set the inner html of a div tag (browser is IE6) - it seems to work, but as soon as the function ends, the changes disappear. How do you make the changes stick? Thanks PS here is...
0
by: Patty05 | last post by:
I have a datagrid on a form that update properly when form loads. When the program runs and I type in/add a new row in the datagrid, it does not save the changes. Any help would be greatly...
4
by: ARC | last post by:
Hello all, I didn't use to have this problem in Access 97, but in 2007 (and maybe other versions of access after 97), if you have a form that has a subform, and you click the close button, you...
1
by: HenHouse | last post by:
Hi all; I think I've asked this question before but it looks like I'm going to need a deeper understanding of the problem rather than just a quick fix... I have three tables represented by three...
5
by: jmarcrum | last post by:
Hey everybody! I've created 2 buttons that I've placed on all my forms: a Save button & a Cancel button. The cancel button I have a question about. I used the wizard to create the button...
4
by: sharsy | last post by:
Hello, I have setup an Access Database which about 7 people can enter data into. We have had a few problems where a 'fairy' has mysteriously been changing data in the table that they're not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.