K
K Viltersten
I've painted an ellipse on a form i'm
designing and it looks as expected.
Then, i noticed that it doesn't get
repainted as the size changes. To see
if the OnPain is called i added a
console print out.
The code looks as follows.
protected override void
OnPaint (PaintEventArgs e){
// painting stuff...
Console.WriteLine ("OnPaint invoked");}
Now, i do know that i paint because i
can see a damn ellipse on the screen
so why don't i see the text?! (Yes, i
started the EXE file from the console
window.)
designing and it looks as expected.
Then, i noticed that it doesn't get
repainted as the size changes. To see
if the OnPain is called i added a
console print out.
The code looks as follows.
protected override void
OnPaint (PaintEventArgs e){
// painting stuff...
Console.WriteLine ("OnPaint invoked");}
Now, i do know that i paint because i
can see a damn ellipse on the screen
so why don't i see the text?! (Yes, i
started the EXE file from the console
window.)