WindowsFormsApplicationBase::UseCompatibleTextRendering Property
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 Value
Type: System::BooleanBoolean. 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 |
|
This example demonstrates how to set the GDI+ text rendering engine as the application's default rendering engine by overriding the UseCompatibleTextRendering 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 Application Page, Project Designer (Visual Basic).
Available since 2.0