T
Telemonic
Guest
Hi,
I am attempting to update a paint event:
public void LblPlayer1Name_Paint(object sender, PaintEventArgs e)
{
Font font = new Font("Aku & Kamu", 40);
Brush brush = new System.Drawing.SolidBrush(System.Drawing.Color.Black);
e.Graphics.TranslateTransform(110, 35);
e.Graphics.RotateTransform(357);
e.Graphics.DrawString(main.txtPlayer1name.Text,font,brush,0,0);
}
from another form. I have tried using this.Invalidate(); and this.Refresh(); but those did not work. I ideally want to have the text re-drawn every time i click a button on my first form. Any help is greatly appreciated. Thanks.
Continue reading...
I am attempting to update a paint event:
public void LblPlayer1Name_Paint(object sender, PaintEventArgs e)
{
Font font = new Font("Aku & Kamu", 40);
Brush brush = new System.Drawing.SolidBrush(System.Drawing.Color.Black);
e.Graphics.TranslateTransform(110, 35);
e.Graphics.RotateTransform(357);
e.Graphics.DrawString(main.txtPlayer1name.Text,font,brush,0,0);
}
from another form. I have tried using this.Invalidate(); and this.Refresh(); but those did not work. I ideally want to have the text re-drawn every time i click a button on my first form. Any help is greatly appreciated. Thanks.
Continue reading...