DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2003

    DoubleBuffered Question VB.NET

    I have a simple windows form that contains two panels. One of the panels is visible and the other one is not visible. When the user clicks a button the panel that is not visible becomes visible and the one that is visible becomes invisible. My problem is that they draw on the screen extremely slowly even though they contain very few controls. I've looked into double buffering but I can't really figure it out. The few examples I've found either don't explain it in detail and throw errors at me faster than I can read them or just don't work at all. Does anyone know how to double buffer a panel in VB.NET 2005?

  2. #2
    Join Date
    Dec 2003
    Nevermind. I figured it out. The panels were set to transparent for some reason. I changed it and now they display correctly. Never knew panel transparency slowed things down like that. Wow it was a huge difference.

  3. #3
    Join Date
    Mar 2005
    Los Angeles, Calif. AKA: Gangsta Yoda™
    Did you set Doublebuffered property in the property grid for your form to True?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer code questions via PMs.
    Microsoft MVP 2006-2009
    Office Development FAQ (VBA, VB6, VB.NET, C#)
    Software Engineer MCP (VB6 & .NET)
    Reps & Rating PostsVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6Outlook Global Address List

  4. #4
    Join Date
    Dec 2003
    Yes but it made no difference. As I said it was due to the panels having their background color set to transparent (I'm still not sure how that happened as I don't remember doing it). After changing the color to something other than transparent the problem went away.

Similar Threads

  1. Question about WebBrowser VB.NET
    By Mansur in forum .NET
    Replies: 2
    Last Post: 07-06-2006, 05:53 AM
  2. VB.Net Class Design Question
    By jrothlander in forum .NET
    Replies: 3
    Last Post: 07-01-2006, 09:55 PM
  3. Why I like VB.NET
    By Tom Cabanski in forum .NET
    Replies: 74
    Last Post: 03-14-2001, 03:30 PM
  4. Is VB.Not still a BEGINNERS' language?
    By Mark Burns in forum .NET
    Replies: 164
    Last Post: 03-13-2001, 12:43 PM
  5. VB.NET: 3 points of view
    By David Kroll in forum .NET
    Replies: 33
    Last Post: 02-13-2001, 10:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.