I have PictureBox, and I set it BorderStyleto None, but I still get the border around it. How can I get rid of this?
What other details? My image has no borders. I am using code
private void btnLoad_Click(object sender, EventArgs e)
{
if (dgOpenFile.ShowDialog() == DialogResult.OK)
{
try
{
img = new Bitmap(dgOpenFile.FileName);
picture.Size = img.Size;
picture.Image = img;
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
}
To open and display an image:
Image 10x10. They are lower (at 800%)
original:
http://img695.imageshack.us/img695/2409/originallu.png
and how it is displayed:
http://img209.imageshack.us/img209/7088/displayed.png
source
share