Works fine for me. What context are you using that code in? Here's what
I'm doing:
protected override void OnPaint(System.Windows.Forms.PaintEventArgs e)
{
e.Graphics.DrawEllipse(Pens.Blue, 10, 10, 300, 300);
}
This is in the MDI child form class. I just created a perfectly normal
form.
The following line of code works just fine in a WinForms .Paint event:
e.Graphics.DrawEllipse(Pens.Blue, 10, 10, 300, 300)
unless the form is a MDI parent or child (in which case, nothing
appears). How do I draw on these form types?
Richard J. Kucia
You can read messages from the DOTNET ar