龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > 软件开发 > VB开发 >

VB 列出系统所有字体

时间:2009-12-30 15:42来源:未知 作者:admin 点击:
分享到:
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
精彩图集

赞助商链接