Using DrawEdge in a UserControl
I've created a usercontrol that acts as a container, and draws a border using the DrawEdge API (to give that sunken Panel effect).
The only problem is that, in the Paint event I have to call UserControl.cls to make sure the DrawEdge is displayed correctly. This make the border flicker.
I've tried using the LockWindowUpdate to stop the flicker, but because it is a container, the LockWindowUpdate effects the drawing of the controls inside it.
Has anyone got any ideas how I can stop the flicker?
Cheers