repaint UserControl Events

Oct 31 2007 9:48 AM
Hi all,

I'm currently struggling with getting all the events used when minimizing, maximizing, resizing e.t.c of a UserControl. What I want to acheive is to use the events initiated both before and after minimizing, maximizing, and resizing. I've seen that there are LostFocus and GotFocus. Some can be overridden. I can capture the graphics of the control to memory and Blit it back to the control. I just need to find the correct events for this.

I've overridden LostFocus to capture the initial graphics and Paint to paint the graphics back. But it doesn't work for resizing.

Any help will be appreicated thanks.

Answers (2)