Bekijk de onderstaande video om te zien hoe je onze site als een web app op je startscherm installeert.
Opmerking: Deze functie is mogelijk niet beschikbaar in sommige browsers.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ComboBox1.DataSource = FontFamily.Families() 'fill the ComBoBox1 with the list of fonts
ComboBox1.DisplayMember = "Name" 'show the name of the font in the ComboBox1
End Sub
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
If ComboBox1.SelectedItem Is Nothing Then Return 'nothing selected so exit
Dim fontfam As FontFamily = CType(ComboBox1.SelectedItem, FontFamily) 'convert item to fontfamily
ComboBox1.Font = New Font(fontfam, ComboBox1.Font.Size, ComboBox1.Font.Style) 'set selected font with same size and style to a button
End Sub
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.