Draw on tabpage's graphics
Draw on tabpage's graphics
Draw on tabpage's graphics
Draw on tabpage's graphics
Draw on tabpage's graphics
Draw on tabpage's graphics Draw on tabpage's graphics Draw on tabpage's graphics Draw on tabpage's graphics Draw on tabpage's graphics Draw on tabpage's graphics Draw on tabpage's graphics Draw on tabpage's graphics
Draw on tabpage's graphics Draw on tabpage's graphics
Draw on tabpage's graphics
Go Back  Xtreme Visual Basic Talk > > > Draw on tabpage's graphics


Reply
 
Thread Tools Display Modes
  #1  
Old 01-19-2011, 02:32 PM
WhatsMyUsername's Avatar
WhatsMyUsername WhatsMyUsername is offline
Regular
 
Join Date: Jan 2011
Location: Currently? Costa Rica
Posts: 52
Default Draw on tabpage's graphics


So I decided to make my famous tile selector project, but instead of drawing in a form's graphics, do it inside a tabpage.

Well, I managed to get it working, but it seems to... flicker.

Normally, setting the form's DoubleBuffered property to True would help a lot there, but apparently, the tabpage has no such property.

When I invalidate the tabpage, I draw two images and fill one rectangle.
Following past advice, those two images were created before, just once, and are stored in a variable so I don't create them every time I invalidate the tabpage.
Reply With Quote
  #2  
Old 01-19-2011, 08:58 PM
AtmaWeapon's Avatar
AtmaWeaponDraw on tabpage's graphics AtmaWeapon is offline
Fabulous Florist

Forum Leader
* Guru *
 
Join Date: Feb 2004
Location: Austin, TX
Posts: 9,500
Default

Here's a good place to start, but depending on some factors it may take some work to get it going.

Let's start simple: try setting the DoubleBuffered property of the TabPage to True. It should be there, since the property is defined on Control and thus inherited. It may not be visible in the designer; you might have to set it in code. Does that help? If not, I'll talk about how to try the other way.
__________________
.NET Resources
My FAQ threads | Tutor's Corner | Code Library
I would bet money 2/3 of .NET questions are already answered in one of these three places.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Draw on tabpage's graphics
Draw on tabpage's graphics
Draw on tabpage's graphics Draw on tabpage's graphics
Draw on tabpage's graphics
Draw on tabpage's graphics
Draw on tabpage's graphics Draw on tabpage's graphics Draw on tabpage's graphics Draw on tabpage's graphics Draw on tabpage's graphics Draw on tabpage's graphics Draw on tabpage's graphics
Draw on tabpage's graphics
Draw on tabpage's graphics
 
Draw on tabpage's graphics
Draw on tabpage's graphics
 
-->