VB 列出系统所有字体
Private Sub FORM_Load()
Dim counter As Integer
For counter = 0 To Screen.FontCount - 1
List1.AddItem Screen.Fonts(counter)
Next
End Sub
Private Sub List1_Click()
Static tempheight As Single
If tempheight = 0 Then tempheight = List1.Height
Text1.FontSize = 16
Text1.Font.Name = List1.List(List1.ListIndex)
List1.Height = tempheight
End Sub
Dim counter As Integer
For counter = 0 To Screen.FontCount - 1
List1.AddItem Screen.Fonts(counter)
Next
End Sub
Private Sub List1_Click()
Static tempheight As Single
If tempheight = 0 Then tempheight = List1.Height
Text1.FontSize = 16
Text1.Font.Name = List1.List(List1.ListIndex)
List1.Height = tempheight
End Sub
- 上一篇:VB 获得系统启动方式
- 下一篇:让VB开发环境支持鼠标滚轮
精彩图集
精彩文章