Creating Flat Tabs  
Author Message
MSJ17





PostPosted: Windows Forms General, Creating Flat Tabs Top

Hey there,

I'm working on an app that has one tabControl component, and which has a bunch of tabs associated with it. I noticed that in the properties for buttons you have the option to control FlatAppearance. However for the tabControl, there is no option to display the tabs flat (like that you see in Excel and Visual Studio). Its a nice look imho, and I'd like to implement it into my app.

I was poking around the MSDN library to come up with something that could control the look of the tabs I found the VisualStyleRenderer.DrawEdge Method

public Rectangle DrawEdge (
	IDeviceContext dc,
	Rectangle bounds,
	Edges edges,
	EdgeStyle style,
	EdgeEffects effects
)

Does anyone have any experience with this method, or have you implemented flat style tabs in your app Any advice on how I should proceed would be great.

thanks.



Windows Forms28  
 
 
Brendan Grant





PostPosted: Windows Forms General, Creating Flat Tabs Top

In order to get the Office of Visual Studio look you would need to paint them yourself... to save time though try one of these examples to get you started or simply to use.

 
 
AZ17





PostPosted: Windows Forms General, Creating Flat Tabs Top

Fair enough.

Thanks!