<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VB.Net%2FGUI</id>
		<title>VB.Net/GUI - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VB.Net%2FGUI"/>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net/GUI&amp;action=history"/>
		<updated>2026-04-05T01:22:47Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net/GUI&amp;diff=582&amp;oldid=prev</id>
		<title> в 16:40, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net/GUI&amp;diff=582&amp;oldid=prev"/>
				<updated>2010-05-26T16:40:06Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 16:40, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net/GUI&amp;diff=583&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net/GUI&amp;diff=583&amp;oldid=prev"/>
				<updated>2010-05-26T12:44:35Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;* [[VB.Net/GUI/Action Handler | Action Handler]]&lt;br /&gt;
* [[VB.Net/GUI/Anchor | Anchor]]&lt;br /&gt;
* [[VB.Net/GUI/Background Worker | Background Worker]]&lt;br /&gt;
* [[VB.Net/GUI/Button | Button]]&lt;br /&gt;
* [[VB.Net/GUI/CheckBox | CheckBox]]&lt;br /&gt;
* [[VB.Net/GUI/CheckBoxList | CheckBoxList]]&lt;br /&gt;
* [[VB.Net/GUI/ComboBox | ComboBox]]&lt;br /&gt;
* [[VB.Net/GUI/Container Control | Container Control]]&lt;br /&gt;
* [[VB.Net/GUI/Control | Control]]&lt;br /&gt;
* [[VB.Net/GUI/Control Inheritance | Control Inheritance]]&lt;br /&gt;
* [[VB.Net/GUI/Control Owner Draw | Control Owner Draw]]&lt;br /&gt;
* [[VB.Net/GUI/Control Subclass | Control Subclass]]&lt;br /&gt;
* [[VB.Net/GUI/Cursor | Cursor]]&lt;br /&gt;
* [[VB.Net/GUI/DataGridView | DataGridView]]&lt;br /&gt;
* [[VB.Net/GUI/DataRow | DataRow]]&lt;br /&gt;
* [[VB.Net/GUI/Date Time Picker | Date Time Picker]]&lt;br /&gt;
* [[VB.Net/GUI/Dialog Color Chooser | Dialog Color Chooser]]&lt;br /&gt;
* [[VB.Net/GUI/Dialog File Save Open | Dialog File Save Open]]&lt;br /&gt;
* [[VB.Net/GUI/Dialog Folder Browser | Dialog Folder Browser]]&lt;br /&gt;
* [[VB.Net/GUI/Dialog Print | Dialog Print]]&lt;br /&gt;
* [[VB.Net/GUI/Dialog Your Own | Dialog Your Own]]&lt;br /&gt;
* [[VB.Net/GUI/Dock | Dock]]&lt;br /&gt;
* [[VB.Net/GUI/DomainUpDown | DomainUpDown]]&lt;br /&gt;
* [[VB.Net/GUI/Drag Drop | Drag Drop]]&lt;br /&gt;
* [[VB.Net/GUI/Drag Move | Drag Move]]&lt;br /&gt;
* [[VB.Net/GUI/Error Provider | Error Provider]]&lt;br /&gt;
* [[VB.Net/GUI/Form Event | Form Event]]&lt;br /&gt;
* [[VB.Net/GUI/Form Inheritance | Form Inheritance]]&lt;br /&gt;
* [[VB.Net/GUI/Form OnPaint | Form OnPaint]]&lt;br /&gt;
* [[VB.Net/GUI/Form Owner | Form Owner]]&lt;br /&gt;
* [[VB.Net/GUI/Form Redraw | Form Redraw]]&lt;br /&gt;
* [[VB.Net/GUI/Frame Form | Frame Form]]&lt;br /&gt;
* [[VB.Net/GUI/Frame Icon | Frame Icon]]&lt;br /&gt;
* [[VB.Net/GUI/Frame Special | Frame Special]]&lt;br /&gt;
* [[VB.Net/GUI/GUI Basics | GUI Basics]]&lt;br /&gt;
* [[VB.Net/GUI/GUI Event | GUI Event]]&lt;br /&gt;
* [[VB.Net/GUI/GroupBox | GroupBox]]&lt;br /&gt;
* [[VB.Net/GUI/Helper Provider | Helper Provider]]&lt;br /&gt;
* [[VB.Net/GUI/Image List | Image List]]&lt;br /&gt;
* [[VB.Net/GUI/Label | Label]]&lt;br /&gt;
* [[VB.Net/GUI/Label Multiline | Label Multiline]]&lt;br /&gt;
* [[VB.Net/GUI/Layout | Layout]]&lt;br /&gt;
* [[VB.Net/GUI/Layout Panel | Layout Panel]]&lt;br /&gt;
* [[VB.Net/GUI/LinkLabel | LinkLabel]]&lt;br /&gt;
* [[VB.Net/GUI/ListBox | ListBox]]&lt;br /&gt;
* [[VB.Net/GUI/ListView | ListView]]&lt;br /&gt;
* [[VB.Net/GUI/MDI | MDI]]&lt;br /&gt;
* [[VB.Net/GUI/Menu | Menu]]&lt;br /&gt;
* [[VB.Net/GUI/MessageBox | MessageBox]]&lt;br /&gt;
* [[VB.Net/GUI/Month Calendar | Month Calendar]]&lt;br /&gt;
* [[VB.Net/GUI/MsgBox | MsgBox]]&lt;br /&gt;
* [[VB.Net/GUI/Notify Icon Tray | Notify Icon Tray]]&lt;br /&gt;
* [[VB.Net/GUI/NumericUpDown | NumericUpDown]]&lt;br /&gt;
* [[VB.Net/GUI/Paint Mode | Paint Mode]]&lt;br /&gt;
* [[VB.Net/GUI/Panel | Panel]]&lt;br /&gt;
* [[VB.Net/GUI/Password | Password]]&lt;br /&gt;
* [[VB.Net/GUI/PictureBox | PictureBox]]&lt;br /&gt;
* [[VB.Net/GUI/PopupMenu | PopupMenu]]&lt;br /&gt;
* [[VB.Net/GUI/Print Document | Print Document]]&lt;br /&gt;
* [[VB.Net/GUI/Print Preview | Print Preview]]&lt;br /&gt;
* [[VB.Net/GUI/Print Setting | Print Setting]]&lt;br /&gt;
* [[VB.Net/GUI/Print Setup Dialog | Print Setup Dialog]]&lt;br /&gt;
* [[VB.Net/GUI/Progress Bar | Progress Bar]]&lt;br /&gt;
* [[VB.Net/GUI/Property Grid | Property Grid]]&lt;br /&gt;
* [[VB.Net/GUI/Radio Button | Radio Button]]&lt;br /&gt;
* [[VB.Net/GUI/ReDo UnDo | ReDo UnDo]]&lt;br /&gt;
* [[VB.Net/GUI/Resources | Resources]]&lt;br /&gt;
* [[VB.Net/GUI/RichTextBox | RichTextBox]]&lt;br /&gt;
* [[VB.Net/GUI/Rtf format | Rtf format]]&lt;br /&gt;
* [[VB.Net/GUI/Ruler | Ruler]]&lt;br /&gt;
* [[VB.Net/GUI/SDI | SDI]]&lt;br /&gt;
* [[VB.Net/GUI/Screen Capture | Screen Capture]]&lt;br /&gt;
* [[VB.Net/GUI/ScrollBar | ScrollBar]]&lt;br /&gt;
* [[VB.Net/GUI/Scrollable Control | Scrollable Control]]&lt;br /&gt;
* [[VB.Net/GUI/SendKeys | SendKeys]]&lt;br /&gt;
* [[VB.Net/GUI/Splash Screen | Splash Screen]]&lt;br /&gt;
* [[VB.Net/GUI/Split Container | Split Container]]&lt;br /&gt;
* [[VB.Net/GUI/Status Bar | Status Bar]]&lt;br /&gt;
* [[VB.Net/GUI/System Icons | System Icons]]&lt;br /&gt;
* [[VB.Net/GUI/TabControl | TabControl]]&lt;br /&gt;
* [[VB.Net/GUI/TextBox | TextBox]]&lt;br /&gt;
* [[VB.Net/GUI/TextBox Special | TextBox Special]]&lt;br /&gt;
* [[VB.Net/GUI/TextBox Validation | TextBox Validation]]&lt;br /&gt;
* [[VB.Net/GUI/ToolBar | ToolBar]]&lt;br /&gt;
* [[VB.Net/GUI/ToolStrip Menu | ToolStrip Menu]]&lt;br /&gt;
* [[VB.Net/GUI/Toolstrip | Toolstrip]]&lt;br /&gt;
* [[VB.Net/GUI/Tooltip | Tooltip]]&lt;br /&gt;
* [[VB.Net/GUI/TrackBar | TrackBar]]&lt;br /&gt;
* [[VB.Net/GUI/TreeView | TreeView]]&lt;br /&gt;
* [[VB.Net/GUI/User Control | User Control]]&lt;br /&gt;
&lt;br /&gt;
==Display All font installed in your system==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;&lt;br /&gt;
Imports System&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Imports System.Drawing&lt;br /&gt;
Imports System.Drawing.Drawing2D&lt;br /&gt;
Imports System.Drawing.Text&lt;br /&gt;
Imports System.Drawing.Imaging&lt;br /&gt;
Imports System.Runtime.InteropServices&lt;br /&gt;
Public Class MainClass&lt;br /&gt;
  Shared Sub Main()&lt;br /&gt;
     Dim form1 As Form1 = new Form1&lt;br /&gt;
     Application.Run(form1)&lt;br /&gt;
  End Sub&lt;br /&gt;
  &lt;br /&gt;
End Class&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Public Class Form1&lt;br /&gt;
  Inherits System.Windows.Forms.Form&lt;br /&gt;
#Region &amp;quot; Windows Form Designer generated code &amp;quot;&lt;br /&gt;
  Public Sub New()&lt;br /&gt;
    MyBase.New()&lt;br /&gt;
    &amp;quot;This call is required by the Windows Form Designer.&lt;br /&gt;
    InitializeComponent()&lt;br /&gt;
    &amp;quot;Add any initialization after the InitializeComponent() call&lt;br /&gt;
  End Sub&lt;br /&gt;
  &amp;quot;Form overrides dispose to clean up the component list.&lt;br /&gt;
  Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
    If disposing Then&lt;br /&gt;
      If Not (components Is Nothing) Then&lt;br /&gt;
        components.Dispose()&lt;br /&gt;
      End If&lt;br /&gt;
    End If&lt;br /&gt;
    MyBase.Dispose(disposing)&lt;br /&gt;
  End Sub&lt;br /&gt;
  &amp;quot;Required by the Windows Form Designer&lt;br /&gt;
  Private components As System.ruponentModel.IContainer&lt;br /&gt;
  &amp;quot;NOTE: The following procedure is required by the Windows Form Designer&lt;br /&gt;
  &amp;quot;It can be modified using the Windows Form Designer.  &lt;br /&gt;
  &amp;quot;Do not modify it using the code editor.&lt;br /&gt;
  Friend WithEvents panel As System.Windows.Forms.Panel&lt;br /&gt;
  &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;
    Me.panel = New System.Windows.Forms.Panel()&lt;br /&gt;
    Me.SuspendLayout()&lt;br /&gt;
    &amp;quot;&lt;br /&gt;
    &amp;quot;panel&lt;br /&gt;
    &amp;quot;&lt;br /&gt;
    Me.panel.AutoScroll = True&lt;br /&gt;
    Me.panel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D&lt;br /&gt;
    Me.panel.Location = New System.Drawing.Point(19, 21)&lt;br /&gt;
    Me.panel.Name = &amp;quot;panel&amp;quot;&lt;br /&gt;
    Me.panel.Size = New System.Drawing.Size(304, 280)&lt;br /&gt;
    Me.panel.TabIndex = 3&lt;br /&gt;
    &amp;quot;&lt;br /&gt;
    &amp;quot;Form1&lt;br /&gt;
    &amp;quot;&lt;br /&gt;
    Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)&lt;br /&gt;
    Me.ClientSize = New System.Drawing.Size(342, 323)&lt;br /&gt;
    Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.panel})&lt;br /&gt;
    Me.MaximizeBox = False&lt;br /&gt;
    Me.MinimizeBox = False&lt;br /&gt;
    Me.Name = &amp;quot;Form1&amp;quot;&lt;br /&gt;
    Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen&lt;br /&gt;
    Me.Text = &amp;quot;Form1&amp;quot;&lt;br /&gt;
    Me.ResumeLayout(False)&lt;br /&gt;
  End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
  Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load&lt;br /&gt;
    Dim Style As FontStyle&lt;br /&gt;
    Dim y As Int32 = 0&lt;br /&gt;
    Dim ff As FontFamily&lt;br /&gt;
    For Each ff In FontFamily.Families&lt;br /&gt;
      Style = FontStyle.Regular&lt;br /&gt;
      If ff.IsStyleAvailable(Style) Then&lt;br /&gt;
        AddString(ff, y, Style)&lt;br /&gt;
      End If&lt;br /&gt;
    Next&lt;br /&gt;
  End Sub&lt;br /&gt;
  Private Sub AddString(ByVal ff As FontFamily, ByRef y As Int32, ByVal Style As FontStyle)&lt;br /&gt;
    Dim fnt As Font = New Font(ff, 12, Style, GraphicsUnit.Pixel)&lt;br /&gt;
    Dim LineSpace As Int32 = CInt((ff.GetLineSpacing(Style)) * _&lt;br /&gt;
                              fnt.Size / ff.GetEmHeight(Style))&lt;br /&gt;
    y += LineSpace + 2&lt;br /&gt;
    Dim pictureBox As PictureBox = New PictureBox()&lt;br /&gt;
    pictureBox.Height = LineSpace&lt;br /&gt;
    pictureBox.Width = panel.Width&lt;br /&gt;
    Dim B As Bitmap = New Bitmap(pictureBox.Width, pictureBox.Height)&lt;br /&gt;
    Dim G As Graphics = Graphics.FromImage(B)&lt;br /&gt;
    G.DrawString(ff.Name + &amp;quot; : Style = &amp;quot; + Style.ToString(), _&lt;br /&gt;
                    fnt, Brushes.Black, 0, 0)&lt;br /&gt;
    pictureBox.Image = B&lt;br /&gt;
    panel.Controls.Add(pictureBox)&lt;br /&gt;
    panel.Controls(panel.Controls.Count - 1).Location = New Point(2, y)&lt;br /&gt;
    If y &amp;lt; panel.Height Then&lt;br /&gt;
      panel.Refresh()&lt;br /&gt;
    End If&lt;br /&gt;
    fnt.Dispose()&lt;br /&gt;
    G.Dispose()&lt;br /&gt;
  End Sub&lt;br /&gt;
End Class&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Font dialog in VB.net==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;&lt;br /&gt;
Imports System&lt;br /&gt;
Imports System.Collections&lt;br /&gt;
Imports System.ruponentModel&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Imports System.Data&lt;br /&gt;
Imports System.Configuration&lt;br /&gt;
Imports System.Resources&lt;br /&gt;
Imports System.Drawing&lt;br /&gt;
Imports System.Drawing.Drawing2D&lt;br /&gt;
&lt;br /&gt;
Public Class MainClass&lt;br /&gt;
    Shared Sub Main()&lt;br /&gt;
        Dim dlg As FontDialog = New FontDialog()&lt;br /&gt;
        Dim res As DialogResult = dlg.ShowDialog()&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Font dialog: turn color option on==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;&lt;br /&gt;
Imports System&lt;br /&gt;
Imports System.Data&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Imports System.Drawing&lt;br /&gt;
Public Class MainClass&lt;br /&gt;
    &lt;br /&gt;
    Shared Sub Main()&lt;br /&gt;
        Dim dlgFont As System.Windows.Forms.FontDialog&lt;br /&gt;
        dlgFont = New System.Windows.Forms.FontDialog&lt;br /&gt;
        &lt;br /&gt;
        dlgFont.ShowColor = True&lt;br /&gt;
        If dlgFont.ShowDialog() = DialogResult.OK Then&lt;br /&gt;
        End If&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Font Properties in Bigger Font size==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;&lt;br /&gt;
Imports System&lt;br /&gt;
Imports System.ruponentModel&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Imports System.Data&lt;br /&gt;
Imports System.Configuration&lt;br /&gt;
Imports System.Drawing&lt;br /&gt;
Imports System.Drawing.Drawing2D&lt;br /&gt;
Imports System.Drawing.Text&lt;br /&gt;
Imports System.Globalization&lt;br /&gt;
Imports System.Text&lt;br /&gt;
Imports System.Collections&lt;br /&gt;
Public Class MainClass&lt;br /&gt;
    Shared Sub Main()&lt;br /&gt;
        Dim myform As Form = New FontSizesForm()&lt;br /&gt;
        Application.Run(myform)&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
Public Class FontSizesForm&lt;br /&gt;
    Inherits System.Windows.Forms.Form&lt;br /&gt;
#Region &amp;quot; Windows Form Designer generated code &amp;quot;&lt;br /&gt;
    Public Sub New()&lt;br /&gt;
        MyBase.New()&lt;br /&gt;
        &amp;quot;This call is required by the Windows Form Designer.&lt;br /&gt;
        InitializeComponent()&lt;br /&gt;
        &amp;quot;Add any initialization after the InitializeComponent() call&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Form overrides dispose to clean up the component list.&lt;br /&gt;
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
        If disposing Then&lt;br /&gt;
            If Not (components Is Nothing) Then&lt;br /&gt;
                components.Dispose()&lt;br /&gt;
            End If&lt;br /&gt;
        End If&lt;br /&gt;
        MyBase.Dispose(disposing)&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Required by the Windows Form Designer&lt;br /&gt;
    Private components As System.ruponentModel.IContainer&lt;br /&gt;
    &amp;quot;NOTE: The following procedure is required by the Windows Form Designer&lt;br /&gt;
    &amp;quot;It can be modified using the Windows Form Designer.  &lt;br /&gt;
    &amp;quot;Do not modify it using the code editor.&lt;br /&gt;
    Friend WithEvents listBox1 As System.Windows.Forms.ListBox&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;
        Me.listBox1 = New System.Windows.Forms.ListBox()&lt;br /&gt;
        Me.SuspendLayout()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;listBox1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.listBox1.Dock = System.Windows.Forms.DockStyle.Fill&lt;br /&gt;
        Me.listBox1.Font = New System.Drawing.Font(&amp;quot;Courier New&amp;quot;, 14.0!)&lt;br /&gt;
        Me.listBox1.IntegralHeight = False&lt;br /&gt;
        Me.listBox1.ItemHeight = 21&lt;br /&gt;
        Me.listBox1.Name = &amp;quot;listBox1&amp;quot;&lt;br /&gt;
        Me.listBox1.Size = New System.Drawing.Size(560, 182)&lt;br /&gt;
        Me.listBox1.TabIndex = 1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;FontSizesForm&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)&lt;br /&gt;
        Me.ClientSize = New System.Drawing.Size(560, 182)&lt;br /&gt;
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.listBox1})&lt;br /&gt;
        Me.Name = &amp;quot;FontSizesForm&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;FontSizesForm&amp;quot;&lt;br /&gt;
        Me.ResumeLayout(False)&lt;br /&gt;
    End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
    Private Function GetPixelsFromPoints(ByVal points As Single, ByVal dpi As Single) As Single&lt;br /&gt;
        Return (dpi * points) / 72&lt;br /&gt;
    End Function&lt;br /&gt;
    Private Function GetInchesFromPoints(ByVal points As Single, ByVal dpi As Single) As Single&lt;br /&gt;
        Return GetPixelsFromPoints(points, dpi) / dpi&lt;br /&gt;
    End Function&lt;br /&gt;
    Private Function GetPixelsFromDesignUnits(ByVal designUnits As Single, ByVal font As Font, ByVal dpi As Single) As Single&lt;br /&gt;
        Dim scale As Single = GetPixelsFromPoints(font.Size, dpi) / font.FontFamily.GetEmHeight(font.Style)&lt;br /&gt;
        Return designUnits * scale&lt;br /&gt;
    End Function&lt;br /&gt;
    Private Function GetPointsFromPixels(ByVal pixels As Single, ByVal dpi As Single) As Single&lt;br /&gt;
        Return (pixels * 72) / dpi&lt;br /&gt;
    End Function&lt;br /&gt;
&lt;br /&gt;
    Private Sub FontSizesForm_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load&lt;br /&gt;
        Dim g As Graphics = Me.CreateGraphics()&lt;br /&gt;
        listBox1.Items.Add(String.Format(&amp;quot;Font.Name=                       {0}&amp;quot;, Me.Font.Name))&lt;br /&gt;
        listBox1.Items.Add(String.Format(&amp;quot;Font.FontFamly.Name=             {0}&amp;quot;, Me.Font.FontFamily.Name))&lt;br /&gt;
        listBox1.Items.Add(String.Format(&amp;quot;Font.Size=                       {0} {1}s (specified Unit)&amp;quot;, Me.Font.Size, Me.Font.Unit.ToString()))&lt;br /&gt;
        listBox1.Items.Add(String.Format(&amp;quot;Font.Height=                     {0} Pixels&amp;quot;, Me.Font.Height))&lt;br /&gt;
        listBox1.Items.Add(String.Format(&amp;quot;Font.GetHeight=                  {0} Pixels&amp;quot;, Me.Font.GetHeight(g)))&lt;br /&gt;
        listBox1.Items.Add(String.Format(&amp;quot;Font.SizeInPoints=               {0} Points&amp;quot;, Me.Font.SizeInPoints.ToString()))&lt;br /&gt;
        listBox1.Items.Add(String.Format(&amp;quot;GetPixels(Font.SizeInPoints)=    {0} Pixels&amp;quot;, GetPixelsFromPoints(Me.Font.SizeInPoints, g.DpiY)))&lt;br /&gt;
        &amp;quot;listBox1.Items.Add(string.Format(&amp;quot;GetInches(Font.SizeInPoints)=    {0} Inches&amp;quot;, GetInchesFromPoints(Me.Font.SizeInPoints, g.DpiY)))&lt;br /&gt;
        listBox1.Items.Add(String.Format(&amp;quot;Font.FontFamily.GetEmHeight=     {0} Design Units&amp;quot;, Me.Font.FontFamily.GetEmHeight(FontStyle.Regular)))&lt;br /&gt;
        listBox1.Items.Add(String.Format(&amp;quot;GetPixels(GetEmHeight)=          {0} Pixels&amp;quot;, GetPixelsFromDesignUnits(Me.Font.FontFamily.GetEmHeight(Me.Font.Style), Me.Font, g.DpiY)))&lt;br /&gt;
        listBox1.Items.Add(String.Format(&amp;quot;Font.FontFamily.GetLineSpacing=  {0} Design Units&amp;quot;, Me.Font.FontFamily.GetLineSpacing(FontStyle.Regular)))&lt;br /&gt;
        listBox1.Items.Add(String.Format(&amp;quot;GetPixels(GetLineSpacing)=       {0} Pixels&amp;quot;, GetPixelsFromDesignUnits(Me.Font.FontFamily.GetLineSpacing(Me.Font.Style), Me.Font, g.DpiY)))&lt;br /&gt;
        listBox1.Items.Add(String.Format(&amp;quot;Font.FontFamily.GetCellAscent=   {0} Design Units&amp;quot;, Me.Font.FontFamily.GetCellAscent(FontStyle.Regular)))&lt;br /&gt;
        listBox1.Items.Add(String.Format(&amp;quot;GetPixels(GetCellAscent)=        {0} Pixels&amp;quot;, GetPixelsFromDesignUnits(Me.Font.FontFamily.GetCellAscent(Me.Font.Style), Me.Font, g.DpiY)))&lt;br /&gt;
        listBox1.Items.Add(String.Format(&amp;quot;Font.FontFamily.GetCellDescent=  {0} Design Units&amp;quot;, Me.Font.FontFamily.GetCellDescent(FontStyle.Regular)))&lt;br /&gt;
        listBox1.Items.Add(String.Format(&amp;quot;GetPixels(GetCellDescent)=       {0} Pixels&amp;quot;, GetPixelsFromDesignUnits(Me.Font.FontFamily.GetCellDescent(Me.Font.Style), Me.Font, g.DpiY)))&lt;br /&gt;
        listBox1.Items.Add(String.Format(&amp;quot;Padding=                         {0} Design Units&amp;quot;, Me.Font.FontFamily.GetLineSpacing(FontStyle.Regular) - (Me.Font.FontFamily.GetCellAscent(FontStyle.Regular) + Me.Font.FontFamily.GetCellDescent(FontStyle.Regular))))&lt;br /&gt;
        listBox1.Items.Add(String.Format(&amp;quot;GetPixels(Padding)=              {0} Pixels&amp;quot;, GetPixelsFromDesignUnits(Me.Font.FontFamily.GetLineSpacing(FontStyle.Regular) - (Me.Font.FontFamily.GetCellAscent(FontStyle.Regular) + Me.Font.FontFamily.GetCellDescent(FontStyle.Regular)), Me.Font, g.DpiY)))&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Get Installed Font and display one by one==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;&lt;br /&gt;
Imports System&lt;br /&gt;
Imports System.Drawing&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Imports System.IO&lt;br /&gt;
&lt;br /&gt;
public class MainClass&lt;br /&gt;
   Shared Sub Main()&lt;br /&gt;
      Dim form1 As Form = New FontViewer&lt;br /&gt;
      Application.Run(form1)&lt;br /&gt;
   End Sub&lt;br /&gt;
End Class&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Public Class FontViewer&lt;br /&gt;
    Inherits System.Windows.Forms.Form&lt;br /&gt;
#Region &amp;quot; Windows Form Designer generated code &amp;quot;&lt;br /&gt;
    Public Sub New()&lt;br /&gt;
        MyBase.New()&lt;br /&gt;
        &amp;quot;This call is required by the Windows Form Designer.&lt;br /&gt;
        InitializeComponent()&lt;br /&gt;
        &amp;quot;Add any initialization after the InitializeComponent() call&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Form overrides dispose to clean up the component list.&lt;br /&gt;
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
        If disposing Then&lt;br /&gt;
            If Not (components Is Nothing) Then&lt;br /&gt;
                components.Dispose()&lt;br /&gt;
            End If&lt;br /&gt;
        End If&lt;br /&gt;
        MyBase.Dispose(disposing)&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Required by the Windows Form Designer&lt;br /&gt;
    Private components As System.ruponentModel.IContainer&lt;br /&gt;
    &amp;quot;NOTE: The following procedure is required by the Windows Form Designer&lt;br /&gt;
    &amp;quot;It can be modified using the Windows Form Designer.  &lt;br /&gt;
    &amp;quot;Do not modify it using the code editor.&lt;br /&gt;
    Friend WithEvents StatusBar As System.Windows.Forms.StatusBar&lt;br /&gt;
    Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox&lt;br /&gt;
    Friend WithEvents lstFonts As System.Windows.Forms.ruboBox&lt;br /&gt;
    Friend WithEvents label1 As System.Windows.Forms.Label&lt;br /&gt;
    Friend WithEvents Panel As System.Windows.Forms.StatusBarPanel&lt;br /&gt;
    Friend WithEvents lstSize As System.Windows.Forms.ruboBox&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;
        Me.StatusBar = New System.Windows.Forms.StatusBar()&lt;br /&gt;
        Me.Panel = New System.Windows.Forms.StatusBarPanel()&lt;br /&gt;
        Me.GroupBox1 = New System.Windows.Forms.GroupBox()&lt;br /&gt;
        Me.lstSize = New System.Windows.Forms.ruboBox()&lt;br /&gt;
        Me.lstFonts = New System.Windows.Forms.ruboBox()&lt;br /&gt;
        Me.label1 = New System.Windows.Forms.Label()&lt;br /&gt;
        CType(Me.Panel, System.ruponentModel.ISupportInitialize).BeginInit()&lt;br /&gt;
        Me.GroupBox1.SuspendLayout()&lt;br /&gt;
        Me.SuspendLayout()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;StatusBar&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.StatusBar.Location = New System.Drawing.Point(0, 150)&lt;br /&gt;
        Me.StatusBar.Name = &amp;quot;StatusBar&amp;quot;&lt;br /&gt;
        Me.StatusBar.Panels.AddRange(New System.Windows.Forms.StatusBarPanel() {Me.Panel})&lt;br /&gt;
        Me.StatusBar.ShowPanels = True&lt;br /&gt;
        Me.StatusBar.Size = New System.Drawing.Size(552, 20)&lt;br /&gt;
        Me.StatusBar.TabIndex = 3&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Panel&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Panel.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring&lt;br /&gt;
        Me.Panel.Width = 536&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;GroupBox1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.GroupBox1.Anchor = ((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _&lt;br /&gt;
                    Or System.Windows.Forms.AnchorStyles.Right)&lt;br /&gt;
        Me.GroupBox1.Controls.AddRange(New System.Windows.Forms.Control() {Me.lstSize, Me.lstFonts, Me.label1})&lt;br /&gt;
        Me.GroupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System&lt;br /&gt;
        Me.GroupBox1.Font = New System.Drawing.Font(&amp;quot;Tahoma&amp;quot;, 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))&lt;br /&gt;
        Me.GroupBox1.Location = New System.Drawing.Point(4, 4)&lt;br /&gt;
        Me.GroupBox1.Name = &amp;quot;GroupBox1&amp;quot;&lt;br /&gt;
        Me.GroupBox1.Size = New System.Drawing.Size(544, 40)&lt;br /&gt;
        Me.GroupBox1.TabIndex = 2&lt;br /&gt;
        Me.GroupBox1.TabStop = False&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;lstSize&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.lstSize.DropDownWidth = 40&lt;br /&gt;
        Me.lstSize.Location = New System.Drawing.Point(448, 12)&lt;br /&gt;
        Me.lstSize.MaxDropDownItems = 20&lt;br /&gt;
        Me.lstSize.Name = &amp;quot;lstSize&amp;quot;&lt;br /&gt;
        Me.lstSize.Size = New System.Drawing.Size(68, 21)&lt;br /&gt;
        Me.lstSize.TabIndex = 2&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;lstFonts&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.lstFonts.DropDownStyle = System.Windows.Forms.ruboBoxStyle.DropDownList&lt;br /&gt;
        Me.lstFonts.DropDownWidth = 340&lt;br /&gt;
        Me.lstFonts.Location = New System.Drawing.Point(100, 12)&lt;br /&gt;
        Me.lstFonts.MaxDropDownItems = 20&lt;br /&gt;
        Me.lstFonts.Name = &amp;quot;lstFonts&amp;quot;&lt;br /&gt;
        Me.lstFonts.Size = New System.Drawing.Size(340, 21)&lt;br /&gt;
        Me.lstFonts.TabIndex = 1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;label1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.label1.Location = New System.Drawing.Point(12, 16)&lt;br /&gt;
        Me.label1.Name = &amp;quot;label1&amp;quot;&lt;br /&gt;
        Me.label1.Size = New System.Drawing.Size(80, 12)&lt;br /&gt;
        Me.label1.TabIndex = 0&lt;br /&gt;
        Me.label1.Text = &amp;quot;Choose Font:&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;FontViewer&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)&lt;br /&gt;
        Me.ClientSize = New System.Drawing.Size(552, 170)&lt;br /&gt;
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.StatusBar, Me.GroupBox1})&lt;br /&gt;
        Me.Name = &amp;quot;FontViewer&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;Font Viewer&amp;quot;&lt;br /&gt;
        CType(Me.Panel, System.ruponentModel.ISupportInitialize).EndInit()&lt;br /&gt;
        Me.GroupBox1.ResumeLayout(False)&lt;br /&gt;
        Me.ResumeLayout(False)&lt;br /&gt;
    End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
&lt;br /&gt;
    Private Sub lstFonts_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lstFonts.SelectedIndexChanged&lt;br /&gt;
        &amp;quot; Trigger a refresh and repaint.&lt;br /&gt;
        If lstFonts.SelectedIndex &amp;lt;&amp;gt; -1 Then Me.Invalidate()&lt;br /&gt;
    End Sub&lt;br /&gt;
&lt;br /&gt;
    Private Sub FontViewer_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load&lt;br /&gt;
        Dim Fonts As New System.Drawing.Text.InstalledFontCollection()&lt;br /&gt;
        Dim Family As FontFamily&lt;br /&gt;
        For Each Family In Fonts.Families&lt;br /&gt;
            lstFonts.Items.Add(Family.Name)&lt;br /&gt;
        Next&lt;br /&gt;
        Dim i As Integer&lt;br /&gt;
        For i = 10 To 100&lt;br /&gt;
            lstSize.Items.Add(i)&lt;br /&gt;
        Next&lt;br /&gt;
        lstSize.Text = &amp;quot;50&amp;quot;&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub FontViewer_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint&lt;br /&gt;
        If lstFonts.SelectedIndex &amp;lt;&amp;gt; -1 Then&lt;br /&gt;
            Try&lt;br /&gt;
                e.Graphics.DrawString(lstFonts.Text, New Font(lstFonts.Text, Val(lstSize.Text)), Brushes.Black, 10, 50)&lt;br /&gt;
                StatusBar.Panels(0).Text = &amp;quot;&amp;quot;&lt;br /&gt;
            Catch err As Exception&lt;br /&gt;
                StatusBar.Panels(0).Text = err.Message&lt;br /&gt;
            End Try&lt;br /&gt;
        End If&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub lstSize_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lstSize.SelectedIndexChanged&lt;br /&gt;
        If Val(lstSize.Text) = 0 Then&lt;br /&gt;
            lstSize.Text = &amp;quot;50&amp;quot;&lt;br /&gt;
        End If&lt;br /&gt;
        Me.Invalidate()&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installed Font Collection in Your System==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;&lt;br /&gt;
Imports System&lt;br /&gt;
Imports System.ruponentModel&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Imports System.Data&lt;br /&gt;
Imports System.Configuration&lt;br /&gt;
Imports System.Drawing&lt;br /&gt;
Imports System.Drawing.Drawing2D&lt;br /&gt;
Imports System.Drawing.Text&lt;br /&gt;
Imports System.Globalization&lt;br /&gt;
Imports System.Text&lt;br /&gt;
Imports System.Collections&lt;br /&gt;
Public Class MainClass&lt;br /&gt;
    Shared Sub Main()&lt;br /&gt;
        Dim myform As Form = New FontFamiliesForm()&lt;br /&gt;
        Application.Run(myform)&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
&lt;br /&gt;
Public Class FontFamiliesForm&lt;br /&gt;
    Inherits System.Windows.Forms.Form&lt;br /&gt;
#Region &amp;quot; Windows Form Designer generated code &amp;quot;&lt;br /&gt;
    Public Sub New()&lt;br /&gt;
        MyBase.New()&lt;br /&gt;
        &amp;quot;This call is required by the Windows Form Designer.&lt;br /&gt;
        InitializeComponent()&lt;br /&gt;
        &amp;quot;Add any initialization after the InitializeComponent() call&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Form overrides dispose to clean up the component list.&lt;br /&gt;
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
        If disposing Then&lt;br /&gt;
            If Not (components Is Nothing) Then&lt;br /&gt;
                components.Dispose()&lt;br /&gt;
            End If&lt;br /&gt;
        End If&lt;br /&gt;
        MyBase.Dispose(disposing)&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Required by the Windows Form Designer&lt;br /&gt;
    Private components As System.ruponentModel.IContainer&lt;br /&gt;
    &amp;quot;NOTE: The following procedure is required by the Windows Form Designer&lt;br /&gt;
    &amp;quot;It can be modified using the Windows Form Designer.  &lt;br /&gt;
    &amp;quot;Do not modify it using the code editor.&lt;br /&gt;
    Friend WithEvents groupBox2 As System.Windows.Forms.GroupBox&lt;br /&gt;
    Friend WithEvents installedFamiliesListBox As System.Windows.Forms.ListBox&lt;br /&gt;
    Friend WithEvents groupBox1 As System.Windows.Forms.GroupBox&lt;br /&gt;
    Friend WithEvents familiesListBox As System.Windows.Forms.ListBox&lt;br /&gt;
    Friend WithEvents splitter1 As System.Windows.Forms.Splitter&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;
        Me.groupBox2 = New System.Windows.Forms.GroupBox()&lt;br /&gt;
        Me.installedFamiliesListBox = New System.Windows.Forms.ListBox()&lt;br /&gt;
        Me.groupBox1 = New System.Windows.Forms.GroupBox()&lt;br /&gt;
        Me.familiesListBox = New System.Windows.Forms.ListBox()&lt;br /&gt;
        Me.splitter1 = New System.Windows.Forms.Splitter()&lt;br /&gt;
        Me.groupBox2.SuspendLayout()&lt;br /&gt;
        Me.groupBox1.SuspendLayout()&lt;br /&gt;
        Me.SuspendLayout()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;groupBox2&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.groupBox2.Controls.AddRange(New System.Windows.Forms.Control() {Me.installedFamiliesListBox})&lt;br /&gt;
        Me.groupBox2.Dock = System.Windows.Forms.DockStyle.Fill&lt;br /&gt;
        Me.groupBox2.Location = New System.Drawing.Point(139, 0)&lt;br /&gt;
        Me.groupBox2.Name = &amp;quot;groupBox2&amp;quot;&lt;br /&gt;
        Me.groupBox2.Size = New System.Drawing.Size(153, 310)&lt;br /&gt;
        Me.groupBox2.TabIndex = 5&lt;br /&gt;
        Me.groupBox2.TabStop = False&lt;br /&gt;
        Me.groupBox2.Text = &amp;quot;Installed Font Families&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;installedFamiliesListBox&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.installedFamiliesListBox.Dock = System.Windows.Forms.DockStyle.Fill&lt;br /&gt;
        Me.installedFamiliesListBox.IntegralHeight = False&lt;br /&gt;
        Me.installedFamiliesListBox.Location = New System.Drawing.Point(3, 16)&lt;br /&gt;
        Me.installedFamiliesListBox.Name = &amp;quot;installedFamiliesListBox&amp;quot;&lt;br /&gt;
        Me.installedFamiliesListBox.Size = New System.Drawing.Size(147, 291)&lt;br /&gt;
        Me.installedFamiliesListBox.TabIndex = 0&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;groupBox1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.groupBox1.Controls.AddRange(New System.Windows.Forms.Control() {Me.familiesListBox})&lt;br /&gt;
        Me.groupBox1.Dock = System.Windows.Forms.DockStyle.Left&lt;br /&gt;
        Me.groupBox1.Location = New System.Drawing.Point(3, 0)&lt;br /&gt;
        Me.groupBox1.Name = &amp;quot;groupBox1&amp;quot;&lt;br /&gt;
        Me.groupBox1.Size = New System.Drawing.Size(136, 310)&lt;br /&gt;
        Me.groupBox1.TabIndex = 3&lt;br /&gt;
        Me.groupBox1.TabStop = False&lt;br /&gt;
        Me.groupBox1.Text = &amp;quot;Font Families&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;familiesListBox&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.familiesListBox.Dock = System.Windows.Forms.DockStyle.Fill&lt;br /&gt;
        Me.familiesListBox.IntegralHeight = False&lt;br /&gt;
        Me.familiesListBox.Location = New System.Drawing.Point(3, 16)&lt;br /&gt;
        Me.familiesListBox.Name = &amp;quot;familiesListBox&amp;quot;&lt;br /&gt;
        Me.familiesListBox.Size = New System.Drawing.Size(130, 291)&lt;br /&gt;
        Me.familiesListBox.TabIndex = 0&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;splitter1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.splitter1.Name = &amp;quot;splitter1&amp;quot;&lt;br /&gt;
        Me.splitter1.Size = New System.Drawing.Size(3, 310)&lt;br /&gt;
        Me.splitter1.TabIndex = 4&lt;br /&gt;
        Me.splitter1.TabStop = False&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;FontFamiliesForm&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)&lt;br /&gt;
        Me.ClientSize = New System.Drawing.Size(292, 310)&lt;br /&gt;
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.groupBox2, Me.groupBox1, Me.splitter1})&lt;br /&gt;
        Me.Name = &amp;quot;FontFamiliesForm&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;FontFamiliesForm&amp;quot;&lt;br /&gt;
        Me.groupBox2.ResumeLayout(False)&lt;br /&gt;
        Me.groupBox1.ResumeLayout(False)&lt;br /&gt;
        Me.ResumeLayout(False)&lt;br /&gt;
    End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
    Private Sub FontFamiliesForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load&lt;br /&gt;
        Dim family As FontFamily&lt;br /&gt;
        For Each family In FontFamily.Families&lt;br /&gt;
            If family.IsStyleAvailable(FontStyle.Bold) = False Then Exit For&lt;br /&gt;
            familiesListBox.Items.Add(family.Name)&lt;br /&gt;
        Next family&lt;br /&gt;
        Dim installedFonts As InstalledFontCollection = New InstalledFontCollection()&lt;br /&gt;
        For Each family In installedFonts.Families&lt;br /&gt;
            installedFamiliesListBox.Items.Add(family.Name)&lt;br /&gt;
        Next family&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==List Installed Fonts==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;&lt;br /&gt;
Imports System&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Imports System.Drawing.Text&lt;br /&gt;
Imports System.Drawing&lt;br /&gt;
Public Class MainClass&lt;br /&gt;
    &lt;br /&gt;
    Shared Sub Main(ByVal args As String())&lt;br /&gt;
        &amp;quot; Get the installed fonts collection.&lt;br /&gt;
        Dim installed_fonts As New InstalledFontCollection&lt;br /&gt;
        &amp;quot; Get an array of the system&amp;quot;s font familiies.&lt;br /&gt;
        Dim font_families() As FontFamily = installed_fonts.Families()&lt;br /&gt;
        &amp;quot; Display the font families.&lt;br /&gt;
        For Each font_family As FontFamily In font_families&lt;br /&gt;
            Console.Write (font_family.Name &amp;amp; &amp;quot;, &amp;quot;)&lt;br /&gt;
        Next font_family&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Show Font dialog and get select font and font color==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;&lt;br /&gt;
Imports System&lt;br /&gt;
Imports System.Data&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Imports System.Drawing&lt;br /&gt;
Public Class MainClass&lt;br /&gt;
    &lt;br /&gt;
    Shared Sub Main()&lt;br /&gt;
        Dim dlgFont As System.Windows.Forms.FontDialog&lt;br /&gt;
        dlgFont = New System.Windows.Forms.FontDialog&lt;br /&gt;
        &lt;br /&gt;
        &amp;quot;dlgFont.Font = set your font here&lt;br /&gt;
        &lt;br /&gt;
        If dlgFont.ShowDialog() = DialogResult.OK Then&lt;br /&gt;
            Console.WriteLine( dlgFont.Font )&lt;br /&gt;
            Console.WriteLine( dlgFont.Color )&lt;br /&gt;
        End If&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Use Font dialog to change TextBox font==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;&lt;br /&gt;
Imports System&lt;br /&gt;
Imports System.Collections&lt;br /&gt;
Imports System.Data&lt;br /&gt;
Imports System.IO&lt;br /&gt;
Imports System.Xml.Serialization&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Imports System.Drawing&lt;br /&gt;
Imports System.Drawing.Drawing2D&lt;br /&gt;
Imports System.Drawing.Text&lt;br /&gt;
Imports System.Drawing.Printing&lt;br /&gt;
&lt;br /&gt;
Public Class MainClass&lt;br /&gt;
    Shared Sub Main()&lt;br /&gt;
       Dim form1 As Form = New Form1()&lt;br /&gt;
       Application.Run(form1) &lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
&lt;br /&gt;
Public Class Form1&lt;br /&gt;
    Inherits System.Windows.Forms.Form&lt;br /&gt;
#Region &amp;quot; Windows Form Designer generated code &amp;quot;&lt;br /&gt;
    Public Sub New()&lt;br /&gt;
        MyBase.New()&lt;br /&gt;
        &amp;quot;This call is required by the Windows Form Designer.&lt;br /&gt;
        InitializeComponent()&lt;br /&gt;
        &amp;quot;Add any initialization after the InitializeComponent() call&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Form overrides dispose to clean up the component list.&lt;br /&gt;
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
        If disposing Then&lt;br /&gt;
            If Not (components Is Nothing) Then&lt;br /&gt;
                components.Dispose()&lt;br /&gt;
            End If&lt;br /&gt;
        End If&lt;br /&gt;
        MyBase.Dispose(disposing)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Friend WithEvents TextBox1 As System.Windows.Forms.TextBox&lt;br /&gt;
    Friend WithEvents Button1 As System.Windows.Forms.Button&lt;br /&gt;
    &amp;quot;Required by the Windows Form Designer&lt;br /&gt;
    Private components As System.ruponentModel.Container&lt;br /&gt;
    &amp;quot;NOTE: The following procedure is required by the Windows Form Designer&lt;br /&gt;
    &amp;quot;It can be modified using the Windows Form Designer.  &lt;br /&gt;
    &amp;quot;Do not modify it using the code editor.&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;
        Me.TextBox1 = New System.Windows.Forms.TextBox()&lt;br /&gt;
        Me.Button1 = New System.Windows.Forms.Button()&lt;br /&gt;
        Me.SuspendLayout()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;TextBox1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.TextBox1.Location = New System.Drawing.Point(14, 24)&lt;br /&gt;
        Me.TextBox1.Name = &amp;quot;TextBox1&amp;quot;&lt;br /&gt;
        Me.TextBox1.Size = New System.Drawing.Size(264, 22)&lt;br /&gt;
        Me.TextBox1.TabIndex = 0&lt;br /&gt;
        Me.TextBox1.Text = &amp;quot;Change font!&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Button1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Button1.Location = New System.Drawing.Point(94, 208)&lt;br /&gt;
        Me.Button1.Name = &amp;quot;Button1&amp;quot;&lt;br /&gt;
        Me.Button1.Size = New System.Drawing.Size(120, 23)&lt;br /&gt;
        Me.Button1.TabIndex = 1&lt;br /&gt;
        Me.Button1.Text = &amp;quot;Change font!&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Form1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.AutoScaleBaseSize = New System.Drawing.Size(6, 15)&lt;br /&gt;
        Me.ClientSize = New System.Drawing.Size(320, 268)&lt;br /&gt;
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.Button1, Me.TextBox1})&lt;br /&gt;
        Me.Name = &amp;quot;Form1&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;Changing the font of a text box&amp;quot;&lt;br /&gt;
        Me.ResumeLayout(False)&lt;br /&gt;
    End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click&lt;br /&gt;
        Dim myDialog As New FontDialog()&lt;br /&gt;
        If myDialog.ShowDialog() = DialogResult.OK Then&lt;br /&gt;
            TextBox1.Font = myDialog.Font&lt;br /&gt;
        End If&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
 &lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>