Randy, programming assistance

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?

6 Responses to “Randy, programming assistance”


  1. 1 randy Dec 20th, 2005 at 7:34 pm

    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.

  2. 2 James Wright Dec 21st, 2005 at 9:10 am

    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.

  3. 3 James Wright Dec 21st, 2005 at 9:10 am

    also, here is the running discussion of this problem on GotDotNet.com
    http://www.gotdotnet.com/Community/MessageBoard/Thread.aspx?id=352912

  4. 4 Daniel Dec 21st, 2005 at 7:32 pm

    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!

  5. 5 Randy Dec 23rd, 2005 at 8:55 am

    James, I’ve gotta say that I agree with Daniel on this one.

  6. 6 Daniel Dec 23rd, 2005 at 8:08 pm

    Thank you Randy.

Leave a Reply




Vifl Summer Mix '07

Download it in iTunes or order your own.

The Shimmy

This site is sort of like a John Cougar Mellencamp song.

Write Something...

Login!

Vifl Worm...

Check it!

Recent Comments

RSS

The Guys

Jon Shell
Leo Kempf
James Wright
Daniel Myers
Lewis (Frog) Stone
Jacob Snyder
Randy Dimmett
Drew Vedenhaupt
Matt Harr
Ryan Gelinas
Jeff Miller