J
Jeff
I have some controls (panels) that I have performed some custom
painting on. I find however that when I drag some other window (like
say an copy of notepad) over and across my application that the paint
disappears. I can repaint manually, but I need to know when to do
it. I tried the various events associated with my form (GotFocus,
LostFocus, Validating, etc), but I could not find the right one to
trigger when I can brought my form back to focus (I would have assumed
that GotFocus would fire at this time).
Can anyone suggest a good time to force a repaint?
Let me go through the steps in case I'm unclear:
1. Start MyApp - it loads on the screen and it has some pretty
painted panels.
2. Open Notepad and move it over top of MyApp.
3. Move Notepad outta the way, MyApp is now no longer so pretty (the
paint is all gone).
4. Drag MyApp around the screen a little. Now the paint is back.
(Just have to give it a shake).
Thoughts?
Thanks.
painting on. I find however that when I drag some other window (like
say an copy of notepad) over and across my application that the paint
disappears. I can repaint manually, but I need to know when to do
it. I tried the various events associated with my form (GotFocus,
LostFocus, Validating, etc), but I could not find the right one to
trigger when I can brought my form back to focus (I would have assumed
that GotFocus would fire at this time).
Can anyone suggest a good time to force a repaint?
Let me go through the steps in case I'm unclear:
1. Start MyApp - it loads on the screen and it has some pretty
painted panels.
2. Open Notepad and move it over top of MyApp.
3. Move Notepad outta the way, MyApp is now no longer so pretty (the
paint is all gone).
4. Drag MyApp around the screen a little. Now the paint is back.
(Just have to give it a shake).
Thoughts?
Thanks.