Support.FontChangeGdiCharSet Method (Font, Byte)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Note: This API is now obsolete.

Returns a font for a specified GDI character set.

Namespace:   Microsoft.VisualBasic.Compatibility.VB6
Assembly:  Microsoft.VisualBasic.Compatibility (in Microsoft.VisualBasic.Compatibility.dll)

[ObsoleteAttribute("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only.")]
public static Font FontChangeGdiCharSet(
	Font CurrentFont,
	byte GdiCharSet


Type: System.Drawing.Font

A Font.

Type: System.Byte

A byte value that specifies the GDI character set to use.

Return Value

Type: System.Drawing.Font

A Font for the specified GDI character set.

In Visual Basic 6.0, the stdFont object had a CharSet property that specified the GDI character set for a font. In Visual Basic, the character set is specified as an optional of a Font constructor. This function is used by the upgrade tools to convert a stdFont to a Font.


Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

.NET Framework
Available since 1.1
Return to top