[VB.NET] How To Change Font Size In TextBox Using ComboBox [English]

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Is there a way for this to trigger on only highlighted text in the RTB? and have you got a video for the other font box?

Ash-qpyw
Автор

Damn its too long... but hey can I just put the size and fontstyle.regular only?? will it work?

Saradomin
Автор

Private Sub As Object, e As EventArgs) Handles FontSize.SelectedValueChanged
If FontSize.Text = "8px" Then
TextBox1.Font = New System.Drawing.Font("Calibri", 8, FontStyle.Regular)
Else
Dim Size As Single = Trim(Mid(FontSize.Text, 1, 2))
TextBox1.Font = New System.Drawing.Font("Calibri", Size, FontStyle.Regular)
End If
End Sub

ithanhunt
Автор

Lol, this is Russian music, , like for me

ah-apache
join shbcf.ru