Click here to Skip to main content
15,890,512 members
Home / Discussions / C#
   

C#

 
AnswerRe: NTLM Authentication in C# Pin
joana.simoes20-Jul-09 3:30
joana.simoes20-Jul-09 3:30 
QuestionRichTextBox- :(( Pin
RongNK17-Jul-09 4:49
RongNK17-Jul-09 4:49 
AnswerRe: RichTextBox- :(( Pin
Manas Bhardwaj17-Jul-09 4:59
professionalManas Bhardwaj17-Jul-09 4:59 
GeneralRe: RichTextBox- :(( Pin
RongNK17-Jul-09 5:04
RongNK17-Jul-09 5:04 
GeneralRe: RichTextBox- :(( Pin
Manas Bhardwaj17-Jul-09 5:14
professionalManas Bhardwaj17-Jul-09 5:14 
GeneralRe: RichTextBox- :(( Pin
RongNK17-Jul-09 5:39
RongNK17-Jul-09 5:39 
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 

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.