DoubleBuffered Question VB.NET


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: DoubleBuffered Question VB.NET

  1. #1
    Join Date
    Dec 2003
    Posts
    83

    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
    Posts
    83
    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
    Location
    Los Angeles, Calif. AKA: Gangsta Yoda™
    Posts
    455
    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
    Posts
    83
    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, 06:53 AM
  2. VB.Net Class Design Question
    By jrothlander in forum .NET
    Replies: 3
    Last Post: 07-01-2006, 10:55 PM
  3. Why I like VB.NET
    By Tom Cabanski in forum .NET
    Replies: 74
    Last Post: 03-14-2001, 04:30 PM
  4. Is VB.Not still a BEGINNERS' language?
    By Mark Burns in forum .NET
    Replies: 164
    Last Post: 03-13-2001, 01:43 PM
  5. VB.NET: 3 points of view
    By David Kroll in forum .NET
    Replies: 33
    Last Post: 02-13-2001, 11: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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

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