protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
Bitmap bmp = new Bitmap("C:\\test.bmp");
e.Graphics.DrawImage(bmp, 0, 0);
}
I tried the above code but an error saying could not find part of the path is shown in the line
Bitmap bmp = new Bitmap("C:\\test.bmp");
what could be the error?