Randy, I don’t even know if you program anymore, but if you do I need some advice/help.
I have a panel with curved corners. Actually, it’s a normal panel with a transparent background and a line drawn around the outside and the line has curved corners. However, drawing the normal background is causing a sort of “flicker” effect in the app so I need to override the OnPaintBackground event. That’s fine and dandy, except that when I do that, suddenly the portion of the panel outside the curve doesn’t draw properly.
here are the before and after shots (before being without the OnPaintBackground being overridden):
http://www.livethislife.net/images/ForWork/panelbefore.gif
http://www.livethislife.net/images/ForWork/panelafter.gif
What I need to do somehow, is either draw the background to memory rather than the screen, or get what the parent looks like at those coordinates and draw that into the panel…got any advice?

I’ll check into it in the morning. Initially, I’m wondering why you can’t take the panel with curved corners and just make it part of the background image. So the dialog box would just have the background image, the two textboxes, and three buttons (images).
Are you using VB or C++? (or VB.NET/C#.NET?) It might not matter, but if I get time, I could try to simulate the problem.
I’m using VB.Net
if you look here:
http://www.codeproject.com/vb/net/custompanel.asp
you can see the exact sample that this was made from…some previous employee in my company copied it.
And actually the background image thing was something I hadn’t thought of…and it was just suggested to me by someone else…I’ll try it out and tell you what happens.
also, here is the running discussion of this problem on GotDotNet.com
http://www.gotdotnet.com/Community/MessageBoard/Thread.aspx?id=352912
The problem isn’t the background… you need to simulate a real life example using the original algorithms that the creator, who is part of U.N.C.L.E., had in mind. Try to code around the corners. A simple eye can see that you have not seen the obvious. You have a virus, you will now be deleted….how can I joke about something that affects your job and way of life? Easy…I’m Daniel Myers. BOOYA!
James, I’ve gotta say that I agree with Daniel on this one.
Thank you Randy.