&#169&#59; Ţĩмό Şąļσмāĸ

In my web browser project, I use owner draw tabs. There's no problem in drawing them, but could someone tell me how to draw a string

I know that I should use Graphics.DrawString() method, but I don't know how to specify what font I want to use. Let's say I want to use Tahoma, size 10.

Another problem is that when I use owner draw property to draw those tabs by myself, I can still see that the program automatically draws those tabs frames. How can I tell the program that I want to draw everything by myself


Thanks,
Timo Salomaki



Re: Windows Forms General Owner draw tab C#

nobugz

Check the TabControl.DrawItem event MSDN library topic. It shows you how to use your own font. You can't draw your own tab, just what's on it.





Re: Windows Forms General Owner draw tab C#

Timo S

Thank you for your reply! Maybe I should make my own tab control then.

Timo Salomaki