WinForms TabControl set ShowFocusCues to false?

StewartBW 1,360 Reputation points
2025-04-24T00:25:56.84+00:00

Hello,

I have difficulties hiding the focus cues around the tab page items of TabControl.

Here seems possible:

https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.tabcontrol?view=netframework-4.8

But my code won't work, anyone can help please? :)

Friend Class _TabControl
    Inherits Windows.Forms.TabControl
    Public Sub New()
        MyBase.New()
        Font = New Font("Segoe UI", 9)
    End Sub
    Protected Overrides ReadOnly Property ShowFocusCues As Boolean
        Get
            Return False
        End Get
    End Property
End Class
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,827 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.