When overridden in a derived class, this property allows a designer to specify the default text rendering engine for the application's forms.
Assembly: Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)
Property ValueType: System.Boolean
Boolean. A value of False indicates that the application should use the default text rendering engine for Visual Basic 2005. A value of True indicates that the application should use the text rendering engine for Visual Basic .NET 2002 and Visual Basic .NET 2003.
By default, this property returns False to indicate that the GDI text rendering engine for Visual Basic 2005 be used for the application's forms. However, you can override this property to return True and specify that the application's forms use the GDI+ text rendering engine, which is used in Visual Basic .NET 2002 and Visual Basic .NET 2003.
This property is called by the WindowsFormsApplicationBase constructor.
Code that overrides methods of the WindowsFormsApplicationBase class should be entered in the ApplicationEvents.vb file, which is hidden by default.
To access the Code Editor window for overriding members
With a project selected in Solution Explorer, click Properties on the Project menu.
Click the Application tab.
Click the View Application Events button to open the Code Editor.
For more information, see How to: Handle Application Events (Visual Basic).
This example demonstrates how to set the GDI+ text rendering engine as the application's default rendering engine by overriding the property.
Protected Overloads Shared ReadOnly Property UseCompatibleTextRendering() As Boolean Get ' Use the GDI+ text rendering engine. Return True End Get End Property
You must enter this code in the Code Editor window for application events. For more information, see How to: Handle Application Events (Visual Basic).
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.