Build a custom drawn control for .net compact framework
Posted
by Hinek
on Stack Overflow
See other posts from Stack Overflow
or by Hinek
Published on 2010-06-12T13:05:17Z
Indexed on
2010/06/12
13:13 UTC
Read the original article
Hit count: 202
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?
© Stack Overflow or respective owner