G
Guest
Hi, how are you
I want to draw a ICON on My Panel?
How to do it?
In C++; We can use CDC, and draw?
public class PictureField : Panel
{
private bool isEditable = false;
public PictureField(bool editable)
{
this.Enabled = false;
this.Size.Height = 20;
this.Size.Width = 20;
isEditable = editable;
}
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint (e);
}
}
if I can not draw on Panel, What is the best way to draw a pic to control?
Thanks
I want to draw a ICON on My Panel?
How to do it?
In C++; We can use CDC, and draw?
public class PictureField : Panel
{
private bool isEditable = false;
public PictureField(bool editable)
{
this.Enabled = false;
this.Size.Height = 20;
this.Size.Width = 20;
isEditable = editable;
}
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint (e);
}
}
if I can not draw on Panel, What is the best way to draw a pic to control?
Thanks