Hello all,

I need your help in the following.

I have created a custom tab control as seen in the attached image. Please tell me how to extend the white color in the circled area in the image for the selected tab.

Recommended Answers

All 3 Replies

I haven't done it before but my guess would be writing an event handler for the tab control's DrawItem event that styles the tab the way you want. Anyone know of a better way?

The Onpaint event of the TabControl?

Cheap and fast method is to pad the text with spaces on both sides (to keep it centered).

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.