I have made a draw method in a separate class to that of the form.
public class Object : Form1
{
public void Draw()
{
SolidBrush brush = new SolidBrush(Color.Yellow);
Graphics mapGraphics = this.CreateGraphics();
mapGraphics.FillEllipse(brush, new Rectangle(0, 0, 12, 12));
pacBrush.Dispose();
mapGraphics.Dispose();
}
}
There are no exceptions thrown, nor errors. I have tried to call the Draw method from the Form_Paint method, but nothing happens at all. How can I fix this?
Thanks