Can I remove the dotted focus rectangle over tabs on a TabControl?

前端 未结 2 1514
轻奢々
轻奢々 2021-02-14 21:59

I have a tab control and need to remove the dotted focus rectangle around the selected tab.

I have set the TabStop property of the TabControl to false. However if I clic

2条回答
  •  说谎
    说谎 (楼主)
    2021-02-14 22:41

    Yes, DrawItem event. You didn't post it, impossible to guess what's wrong with it. Just make sure that you don't call e.DrawFocusRectangle(), likely to present when you copied the MSDN sample code. Simply deleting the statement is sufficient. Consider using a different background color or text font style as an alternative so the focus hint isn't entirely lost.

提交回复
热议问题