FontDialog.ShowApply : FontDialog « System.Windows.Forms « VB.Net by API






FontDialog.ShowApply

  

Imports System.Drawing
Imports System.Windows.Forms

public class FontDialogProperty
   public Shared Sub Main


        Dim FontDialog1 As FontDialog = New System.Windows.Forms.FontDialog
        
        Dim objNewFont As Font

        objNewFont = New Font("Verdana", 12, FontStyle.Underline)
        With FontDialog1
            .Font = objNewFont
            .AllowScriptChange = False
            .ShowColor = True
            .Color = Color.Blue
            .ShowApply = True
            '.ShowEffects = False
        End With

        If FontDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
            Console.WriteLine(FontDialog1.Font)
            Console.WriteLine(FontDialog1.Color)
        End If

   End Sub
End class

   
    
  








Related examples in the same category

1.FontDialog.AllowScriptChange
2.FontDialog.Color
3.FontDialog.Font
4.FontDialog.ShowColor
5.FontDialog.ShowEffects