Click here to Skip to main content
15,881,803 members
Home / Discussions / C#
   

C#

 
GeneralRe: RichTextBox- :(( Pin
DoctorMick17-Jul-09 6:19
DoctorMick17-Jul-09 6:19 
AnswerRe: RichTextBox- :(( Pin
Luc Pattyn17-Jul-09 10:07
sitebuilderLuc Pattyn17-Jul-09 10:07 
QuestionControl Timer is not work ?? Pin
anhhuynokia17-Jul-09 4:17
anhhuynokia17-Jul-09 4:17 
AnswerRe: Control Timer is not work ?? Pin
musefan17-Jul-09 4:25
musefan17-Jul-09 4:25 
AnswerRe: Control Timer is not work ?? Pin
ddecoy17-Jul-09 4:27
ddecoy17-Jul-09 4:27 
AnswerRe: Control Timer is not work ?? Pin
OriginalGriff17-Jul-09 4:27
mveOriginalGriff17-Jul-09 4:27 
AnswerRe: Control Timer is not work ?? Pin
Luc Pattyn17-Jul-09 10:29
sitebuilderLuc Pattyn17-Jul-09 10:29 
GeneralRe: Control Timer is not work ?? Pin
anhhuynokia17-Jul-09 18:06
anhhuynokia17-Jul-09 18:06 
public delegate void DisplayActionHandler();

public void StartTimer()
{
if (this.InvokeRequired)
{
// Invokes the timer restart from the timer thread.
this.Invoke(new DisplayActionHandler(StartTimer));
}
else
{
this.timer.Start();
}
}

public void StopTimer()
{
if (this.InvokeRequired)
{
// Invokes the timer restart from the timer thread.
this.Invoke(new DisplayActionHandler(StopTimer));
}
else
{
this.timer.Stop();
}
}
Use StopTimer() and StartTimer() instead of myTimer.Stop (or myTimer.Enabled = false).

If your timer was called from the other thread that the caller, the simple Stop/Start will not work, you will need to Invoke your stop/start from the thread in that the timer was created.

Thank Sergiu Dudnic Thumbs Up | :thumbsup:
Questionenumerate local group membership on a member server Pin
caiena17-Jul-09 3:55
caiena17-Jul-09 3:55 
QuestionText size in WebBrowser control Pin
Branislav Vidovic17-Jul-09 2:44
Branislav Vidovic17-Jul-09 2:44 
AnswerRe: Text size in WebBrowser control Pin
Adam R Harris17-Jul-09 8:46
Adam R Harris17-Jul-09 8:46 
GeneralRe: Text size in WebBrowser control Pin
Adam R Harris17-Jul-09 10:53
Adam R Harris17-Jul-09 10:53 
GeneralRe: Text size in WebBrowser control Pin
Branislav Vidovic19-Jul-09 12:42
Branislav Vidovic19-Jul-09 12:42 
AnswerRe: Text size in WebBrowser control Pin
Luc Pattyn17-Jul-09 10:33
sitebuilderLuc Pattyn17-Jul-09 10:33 
QuestionAdding items at bottom in List View Pin
BalajiRamasamy17-Jul-09 1:44
BalajiRamasamy17-Jul-09 1:44 
AnswerRe: Adding items at bottom in List View Pin
OriginalGriff17-Jul-09 1:46
mveOriginalGriff17-Jul-09 1:46 
AnswerRe: Adding items at bottom in List View Pin
Baeltazor17-Jul-09 1:55
Baeltazor17-Jul-09 1:55 
GeneralRe: Adding items at bottom in List View Pin
BalajiRamasamy17-Jul-09 2:10
BalajiRamasamy17-Jul-09 2:10 
AnswerRe: Adding items at bottom in List View Pin
OkkiePepernoot17-Jul-09 2:36
OkkiePepernoot17-Jul-09 2:36 
QuestionFind Internet Server IP address Pin
vasanth arivali17-Jul-09 1:25
vasanth arivali17-Jul-09 1:25 
AnswerRe: Find Internet Server IP address Pin
Luc Pattyn17-Jul-09 1:44
sitebuilderLuc Pattyn17-Jul-09 1:44 
GeneralRe: Find Internet Server IP address Pin
vasanth arivali17-Jul-09 2:30
vasanth arivali17-Jul-09 2:30 
AnswerRe: Find Internet Server IP address Pin
OriginalGriff17-Jul-09 1:44
mveOriginalGriff17-Jul-09 1:44 
AnswerRe: Find Internet Server IP address Pin
Mirko198017-Jul-09 1:52
Mirko198017-Jul-09 1:52 
GeneralRe: Find Internet Server IP address Pin
harold aptroot17-Jul-09 2:47
harold aptroot17-Jul-09 2: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.