protected override void OnPaint(PaintEventArgs e)
{
e.Graphics.DrawImage(render, 400, 400);
}
This is the OnPaint of the Form1 class. The form has a listbox. The problem is with the render only showing partially when doing a resize on the form. Is the listbox somehow clipping it out? The listbox and the bitmap don't overlap.
I've tried the following:
- Call base.OnPaint(e); before and after DrawImage();.
- Set the form to doublebuffer, userpaint, paint everything in WM conf, etc.
- Try Refresh() and Update() of the listbox with every combination I came up with, before and after DrawImage()