Get selected font from FontDialog : FontDialog « GUI « VB.Net Tutorial






Imports System.IO
Imports System.Windows.Forms

public class FontDialogSelectedFont
   public Shared Sub Main
        Dim FontDB As New FontDialog()

        If (FontDB.ShowDialog() = DialogResult.OK) Then
            Console.WriteLine(FontDB.Font)
        End If

   End Sub
End class








14.71.FontDialog
14.71.1.Font dialog apply actionFont dialog apply action
14.71.2.Font dialog showing effectsFont dialog showing effects
14.71.3.Set Properties for a FontDialogSet Properties for a FontDialog
14.71.4.Get selected font from FontDialog
14.71.5.Use Font dialog to set Label fontUse Font dialog to set Label font