PC Review


Reply
Thread Tools Rate Thread

Textbox and Timer problem

 
 
Felix
Guest
Posts: n/a
 
      28th Jun 2006
Hi,
I am experiencing a strange problem while developing a smartphone WM5
application. I have 4 textboxes and a timer that updates these
textboxes. The textboxes enabled is set to false so the user cannot
modify them. This works fine and the timer updates the textboxes
correctly. I added another textbox (enabled=true) and all of a sudden
my other 4 textboxes don't get updated anymore. I set a breakpoint in
the timer function and the code never even enters the timer tick event.
My timer is enabled..it's something with these textboxes that i can't
figure it out.

If i set the new textbox to enabled=false then it works again. Anyone
know why this is happening.

Thanks,
Felix

 
Reply With Quote
 
 
 
 
=?Utf-8?B?QWxleCBZYWtobmluIFtNVlBd?=
Guest
Posts: n/a
 
      28th Jun 2006
Just guessing here: Make sure that your timer starts after all controls
initialized.

--
Alex Yakhnin, .NET CF MVP
www.intelliprog.com | www.opennetcf.org


"Felix" wrote:

> Hi,
> I am experiencing a strange problem while developing a smartphone WM5
> application. I have 4 textboxes and a timer that updates these
> textboxes. The textboxes enabled is set to false so the user cannot
> modify them. This works fine and the timer updates the textboxes
> correctly. I added another textbox (enabled=true) and all of a sudden
> my other 4 textboxes don't get updated anymore. I set a breakpoint in
> the timer function and the code never even enters the timer tick event.
> My timer is enabled..it's something with these textboxes that i can't
> figure it out.
>
> If i set the new textbox to enabled=false then it works again. Anyone
> know why this is happening.
>
> Thanks,
> Felix
>
>

 
Reply With Quote
 
Felix
Guest
Posts: n/a
 
      29th Jun 2006
My timer is enabled from the properties of the control. I don't enable
it in the code. Do you think the timer should be enabled in the class
constructor after Initializing the controls? Do you know why this
matters?

Thanks,
Felix

P.S. I'm doing this in C#.

Alex wrote:
> Just guessing here: Make sure that your timer starts after all controls
> initialized.
>
> --
> Alex Yakhnin, .NET CF MVP
> www.intelliprog.com | www.opennetcf.org
>
>
> "Felix" wrote:
>
> > Hi,
> > I am experiencing a strange problem while developing a smartphone WM5
> > application. I have 4 textboxes and a timer that updates these
> > textboxes. The textboxes enabled is set to false so the user cannot
> > modify them. This works fine and the timer updates the textboxes
> > correctly. I added another textbox (enabled=true) and all of a sudden
> > my other 4 textboxes don't get updated anymore. I set a breakpoint in
> > the timer function and the code never even enters the timer tick event.
> > My timer is enabled..it's something with these textboxes that i can't
> > figure it out.
> >
> > If i set the new textbox to enabled=false then it works again. Anyone
> > know why this is happening.
> >
> > Thanks,
> > Felix
> >
> >


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Array of System.Timers.timer - Assigning an object to timer Gina_Marano Microsoft C# .NET 2 8th Mar 2007 01:51 AM
How to pause the timer created from System.Threading.Timer class =?Utf-8?B?RGhydXZlc2ggQnJhaG1iaGF0dA==?= Microsoft Dot NET Framework 4 29th Mar 2006 01:05 PM
System.Timers.Timer bug : timer fires immediately/continously felix Microsoft Dot NET Framework 2 25th Apr 2005 07:48 PM
Updating Windows Form TextBox.Text w/ a Timer (c#) =?Utf-8?B?Q2FzZQ==?= Microsoft Dot NET Framework Forms 4 27th Apr 2004 09:16 PM
text display in textbox with timer Tom Microsoft C# .NET 4 9th Oct 2003 08:32 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:54 PM.