Hi all,
Does anybody know how can I get a gradient color to be used in just the headers in a Tab control? Thanks in advance.

Recommended Answers

All 2 Replies

You could look at http://www.codeproject.com/KB/tabs/flattabcontrol.aspx

To make a gradient color use (as an example) :

LinearGradientBrush MyLinGradBru = new LinearGradientBrush(MyRect,Color.White,Color.Black,LinearGradientMode.ForwardDiagonal)
Which will give a gradient from white to black from topleft to bottomright in MyRect.

You could look at http://www.codeproject.com/KB/tabs/flattabcontrol.aspx

To make a gradient color use (as an example) :

LinearGradientBrush MyLinGradBru = new LinearGradientBrush(MyRect,Color.White,Color.Black,LinearGradientMode.ForwardDiagonal)
Which will give a gradient from white to black from topleft to bottomright in MyRect.

hi friend,
Thanks, thanks a lot.I have one another question.How can i do the same in the case of Datagridview...?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.