Click here to Skip to main content
15,912,665 members
Home / Discussions / C#
   

C#

 
GeneralRe: Event handle problem in C# Pin
Phoen2530-Mar-06 1:20
Phoen2530-Mar-06 1:20 
GeneralRe: Event handle problem in C# Pin
Phoen2530-Mar-06 1:22
Phoen2530-Mar-06 1:22 
QuestionControl visible changed event Pin
malharone29-Mar-06 8:48
malharone29-Mar-06 8:48 
QuestionEnvironment.GetFolderPath doesn't return anything when running from a Windows Service Pin
montm29-Mar-06 8:07
montm29-Mar-06 8:07 
QuestionTimer and Paint Pin
CoolASL29-Mar-06 7:51
CoolASL29-Mar-06 7:51 
AnswerRe: Timer and Paint Pin
Ravi Bhavnani29-Mar-06 8:11
professionalRavi Bhavnani29-Mar-06 8:11 
GeneralRe: Timer and Paint Pin
CoolASL29-Mar-06 17:50
CoolASL29-Mar-06 17:50 
AnswerRe: Timer and Paint Pin
Guffa29-Mar-06 8:12
Guffa29-Mar-06 8:12 
CoolASL wrote:
It sometimes appears, but for such a short duration that it is hardly visible.


That's because you are not doing the drawing in the Paint event. Now you are just drawing it on the screen, and when the form is being redrawn because you invalidated it, the time that you drew is painted over.

Why are you drawing the time as graphics anyway? Put the string in a label, and it will draw itself. When you change the Text property of the label, it will also invalidate itself so that it's redrawn.

---
b { font-weight: normal; }

GeneralRe: Timer and Paint Pin
CoolASL29-Mar-06 17:48
CoolASL29-Mar-06 17:48 
AnswerRe: Timer and Paint Pin
Guffa29-Mar-06 21:09
Guffa29-Mar-06 21:09 
QuestionMouseEnter Problem in C# Pin
Phoen2529-Mar-06 7:26
Phoen2529-Mar-06 7:26 
QuestionHelp! Asynchronous Executions Pin
swanmynova29-Mar-06 6:28
swanmynova29-Mar-06 6:28 
AnswerRe: Help! Asynchronous Executions Pin
Judah Gabriel Himango29-Mar-06 11:19
sponsorJudah Gabriel Himango29-Mar-06 11:19 
GeneralRe: Help! Asynchronous Executions Pin
swanmynova30-Mar-06 5:18
swanmynova30-Mar-06 5:18 
GeneralRe: Help! Asynchronous Executions Pin
Judah Gabriel Himango30-Mar-06 6:30
sponsorJudah Gabriel Himango30-Mar-06 6:30 
GeneralRe: Help! Asynchronous Executions Pin
swanmynova30-Mar-06 7:54
swanmynova30-Mar-06 7:54 
QuestionFLOPS Pin
Mridang Agarwalla29-Mar-06 5:58
Mridang Agarwalla29-Mar-06 5:58 
QuestionFlags problem Pin
Mridang Agarwalla29-Mar-06 5:53
Mridang Agarwalla29-Mar-06 5:53 
GeneralRe: Flags problem Pin
Guffa29-Mar-06 6:52
Guffa29-Mar-06 6:52 
AnswerRe: Flags problem Pin
Ravi Bhavnani29-Mar-06 7:39
professionalRavi Bhavnani29-Mar-06 7:39 
GeneralRe: Flags problem Pin
Mridang Agarwalla29-Mar-06 15:17
Mridang Agarwalla29-Mar-06 15:17 
GeneralRe: Flags problem Pin
Ravi Bhavnani29-Mar-06 16:12
professionalRavi Bhavnani29-Mar-06 16:12 
AnswerRe: Flags problem Pin
darkelv29-Mar-06 16:10
darkelv29-Mar-06 16:10 
Questioncanny edge detection Pin
preci29-Mar-06 5:41
preci29-Mar-06 5:41 
AnswerRe: canny edge detection Pin
Ravi Bhavnani29-Mar-06 8:16
professionalRavi Bhavnani29-Mar-06 8:16 

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.