Articles
| 3.Webcam streaming in VB.NET |
| 4.Remoting with firewalls |
| 5.RSA from first principles |
| 6.Key & MouseLogger in .NET |
| 7.Networking Resource Kit for .NET
|
| 8.Automatic Reboot with .NET
|
| 10.Migrating VB6 Winsock to VB.NET |
| 11.Migrating C++ sockets to C# |
| 13.Lingua - Localization webservice |
| 17.TCP & UDP port reference |
| 18..NET Framework reference |
| 21.MAC address assignments |
| 22.DLL entry point reference |
|
|
Please use FireFox to view this page
This website has been designed for use with the FireFox browser. Please use FireFox to view this page.
CreateFont Reference in C#, VB.NET and VB6
Library:gdi32.dll
Visual Basic 6 definition
|
Declare Function CreateFont Lib "gdi32.dll" Alias "CreateFontA" (ByVal nHeight As Long, ByVal nWidth As Long, ByVal nEscapement As Long, ByVal nOrientation As Long, ByVal fnWeight As Long, ByVal fdwItalic As Long, ByVal fdwUnderline As Long, ByVal fdwStrikeOut As Long, ByVal fdwCharSet As Long, ByVal fdwOutputPrecision As Long, ByVal fdwClipPrecision As Long, ByVal fdwQuality As Long, ByVal fdwPitchAndFamily As Long, ByVal lpszFace As String) As Long
|
Visual Basic .NET definition
|
Declare Function CreateFont Lib "gdi32" Alias "CreateFontA" (ByVal H As Integer, ByVal W As Integer, ByVal E As Integer, ByVal O As Integer, ByVal W As Integer, ByVal I As Integer, ByVal u As Integer, ByVal S As Integer, ByVal C As Integer, ByVal OP As Integer, ByVal CP As Integer, ByVal Q As Integer, ByVal PAF As Integer, ByVal F As String) As Integer
|
C# definition
|
[DllImport("gdi32", EntryPoint="CreateFont")]
public static extern int CreateFontA(int H, int W, int E, int O, int W2, int I, int u, int S, int C, int OP, int CP, int Q, int PAF, string F)
|
Description
CreateFont creates a font object, which allows a font with given attributes to be used to draw text on a device. The font created by the function is the one which most closely matches the attributes of the logical font information passed via the numerous parameters. After your program is finished using the font, it must be deleted by using DeleteObject.
CreateFont
Creates a logical font.
System.Drawing.Font constructor
Return Value
If an error occured, the function returns 0 (Windows NT, 2000: use GetLastError to get the error code). If successful, the function returns a handle to the font just created.
Parameters
Constants
Further Information:
For further information on Windows API functions such as these, and how to use these API's in your
C# and VB.NET applications, please refer to the book 'Network programming in .NET' (Buy at Amazon UK)
(Buy at Amazon US)
Visual Basic 6 example source code
Visual Basic .NET example source code
C# example source code
Provide a code example
Copyright 2012 Open Merchant Account Ltd.
|