GUI
Hiding TabControl tabs in c#
by brian on Jan.02, 2008, under .NET, GUI, c#, coding
Finally found how this way online to hide the tabs on a tab control. Works pretty good. This will quite simplify my GUI coding and mean I won’t need to import a component. Thanks jeeftan
Rectangle rect = new RectangleF(
tabPage1.Left,
tabPage1.Top,
tabPage1.Width,
tabPage1.Height );
tabControl1.Region = new Region(rect);
C# Enabling Double buffering for a form.
by brian on Jan.01, 2008, under .NET, GUI, c#, coding
Ran across a simple how-to to enable double buffering for a form. Just put the code snippet in the form’s constructor after the InializeComponents
this.SetStyle(
ControlStyles.AllPaintingInWmPaint |
ControlStyles.UserPaint |
ControlStyles.DoubleBuffer,true);
This gets rid of flicker, it also makes draw a tad slower.
Found the code at: http://www.bobpowell.net/doublebuffer.htm Thanks Bob Powell!
