|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
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 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 Show quoteHide quote "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 > > > 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 Show quoteHide quote "Joseph MCAD" <JosephM***@discussions.microsoft.com> wrote in message news:E8E785DB-D9F6-4E7C-AF65-567D2E18F4C0@microsoft.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 >> >> >> 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 "Cor Ligthert" <notmyfirstn***@planet.nl> wrote in message The timer will fire constantly but I mean it fires at every 200 interval news:OdV9cHAPFHA.2136@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. 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" <no@spam.net> schrieb: Are you sure the button is wide enough to show the "l" character?>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. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> Herfried,
> Can be> Are you sure the button is wide enough to show the "l" character? :-) Cor"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message Yes.news:%23SFyqpBPFHA.2468@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? After did a build rather than run, everything was ok.
Show quoteHide quote "Brett" <no@spam.net> wrote in message news:eNJx7r%23OFHA.3444@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 >
Newbie Question - Please HELP!
dataset inheritance How to access aspx page thru the menu control only? Reading Output from Shell Command How to Move Mouse to Control with Focus conversion issue Remote debugging: Unable to map the debug start page URL to a machine name Outlook ContactItem.Display and .NET How to name a thread? Reading color from a text file FromArgb |
|||||||||||||||||||||||