Click here to Skip to main content
15,928,109 members
Home / Discussions / C#
   

C#

 
GeneralRe: Help -- TreeView, How to Sort only a Part of TreeView Nodes Pin
CStiefeling20-Apr-05 11:59
CStiefeling20-Apr-05 11:59 
GeneralRe: Help -- TreeView, How to Sort only a Part of TreeView Nodes Pin
Umair Tariq20-Apr-05 20:00
Umair Tariq20-Apr-05 20:00 
GeneralDrawing area objects on top of Image Pin
Lyot_be18-Apr-05 20:56
Lyot_be18-Apr-05 20:56 
GeneralRe: Drawing area objects on top of Image Pin
MoustafaS19-Apr-05 4:36
MoustafaS19-Apr-05 4:36 
GeneralRe: Drawing area objects on top of Image Pin
Anonymous19-Apr-05 7:00
Anonymous19-Apr-05 7:00 
GeneralCheck shared folder permission Pin
Johny Ng18-Apr-05 20:12
Johny Ng18-Apr-05 20:12 
Generalcrystalreport Pin
itssuk18-Apr-05 20:06
itssuk18-Apr-05 20:06 
Generalweird behavior...probably threading related Pin
vannich18-Apr-05 18:47
vannich18-Apr-05 18:47 
I wrote a control. It is a timer with 1 button (Start/Stop) and 3 readonly textboxes to show the start time, stop time, running time. It also has a public method Start() which is also used in the ClickEvent of the button to start the timer. While the timer is running, the textbox that shows the running time is updated every second.

Here's the weird part. When Timer.Start() is called in another thread, the textboxes that should show the details are not updated on a certain interval. The reason why I put the call to Timer.Start() in another thread is that it's called by a remote host via sockets. The remote host sends its hostname which corresponds to a certain field in a set of MyTimer controls.
The update is in the Tick event of a Timer control within my control. I tried putting messageBox routines and I did find out, they are not executed. The Tick event does not fire!!! The timer works fine when using the start button to start it. Is this due to the fact that the event occurs in the _main_ thread?

Please enlighten me about this weird behaviour.
GeneralRe: weird behavior...probably threading related Pin
S. Senthil Kumar18-Apr-05 19:13
S. Senthil Kumar18-Apr-05 19:13 
GeneralRe: weird behavior...probably threading related Pin
vannich20-Apr-05 2:15
vannich20-Apr-05 2:15 
GeneralProblem in Threading Pin
Mohammed Aijaz Mohiuddin18-Apr-05 16:06
Mohammed Aijaz Mohiuddin18-Apr-05 16:06 
GeneralRe: Problem in Threading Pin
Dave Kreskowiak18-Apr-05 17:29
mveDave Kreskowiak18-Apr-05 17:29 
GeneralStrange Error: adding custom control from toolbar Pin
AnneThorne18-Apr-05 13:41
AnneThorne18-Apr-05 13:41 
GeneralRe: Strange Error: adding custom control from toolbar Pin
leppie18-Apr-05 22:41
leppie18-Apr-05 22:41 
GeneralRe: Strange Error: adding custom control from toolbar Pin
AnneThorne19-Apr-05 5:03
AnneThorne19-Apr-05 5:03 
GeneralRe: Strange Error: adding custom control from toolbar Pin
AnneThorne19-Apr-05 8:39
AnneThorne19-Apr-05 8:39 
Generalconnecting to webservice server Pin
Johny Ng18-Apr-05 12:16
Johny Ng18-Apr-05 12:16 
GeneralRe: connecting to webservice server Pin
S. Senthil Kumar18-Apr-05 19:16
S. Senthil Kumar18-Apr-05 19:16 
Generale-mail Client problems Pin
SherKar18-Apr-05 12:11
SherKar18-Apr-05 12:11 
QuestionBest way to structure data for a form?? Pin
OnlyTaz18-Apr-05 11:23
OnlyTaz18-Apr-05 11:23 
AnswerRe: Best way to structure data for a form?? Pin
Christian Graus18-Apr-05 17:06
protectorChristian Graus18-Apr-05 17:06 
GeneralRe: Best way to structure data for a form?? Pin
OnlyTaz18-Apr-05 18:11
OnlyTaz18-Apr-05 18:11 
GeneralRe: Best way to structure data for a form?? Pin
Christian Graus18-Apr-05 18:16
protectorChristian Graus18-Apr-05 18:16 
GeneralC# win service Pin
18-Apr-05 10:56
suss18-Apr-05 10:56 
GeneralRe: C# win service Pin
Dave Kreskowiak18-Apr-05 14:47
mveDave Kreskowiak18-Apr-05 14:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.