The following code is not painting anything:
void Form3_Paint(object sender, PaintEventArgs e)
{
string text = new string('m', 3000);
TextRenderer.DrawText(
e.Graphics,
text,
this.Font,
new Point(10, 10),
Color.Black,
Color.Transparent);
}
Seems that the string is too long. If I change the string lenght to 2000 it works (I'm using SegoeUI 9) font.
Do you know any workaround for this?