I just started on the .net compact framework. I want to draw a Sudoku field on the screen. So I put down a PictureBox
and defined a method for the Paint
event:
private void pictureBoxPlayfield_Paint(object sender, PaintEventArgs e)
{
// use e.Graphics to draw the grid, numbers and cursor
}
This works, but you can see as the grid is drawn. So my question is, what is the right/better way to create such a custom control? Is there maybe a way to enable double buffering?