获得系统中的所有字体列表
在Form1中加入一个ListBox,并在Form1中加入如下代码:
Private Sub Form_Load()
Dim counter As IntegerFor counter = 0 To Screen.FontCount - 1
List1.AddItem Screen.Fonts(counter)
Next
End SubPrivate Sub List1_Click()
Static tempheight As SingleIf tempheight = 0 Then tempheight = List1.Height
List1.Font.Name = List1.List(List1.ListIndex)
List1.Height = tempheight
End Sub
在Form1中加入一个ListBox,并在Form1中加入如下代码:
Private Sub Form_Load()
Dim counter As IntegerFor counter = 0 To Screen.FontCount - 1
List1.AddItem Screen.Fonts(counter)
Next
End SubPrivate Sub List1_Click()
Static tempheight As SingleIf tempheight = 0 Then tempheight = List1.Height
List1.Font.Name = List1.List(List1.ListIndex)
List1.Height = tempheight
End Sub
解决方案 »
- 问个和系统日志相关的问题
- 在用户控件中可以用菜单编辑器添加菜单吗?
- PostMessage 问题
- 关于DOS程序的终止(如同实现按ctrl+C键的效果!)
- 急!!用vba(access)怎样能把sql数据库中表的一些记录形成一个查询,写入access中呢?就象在access中建一个查询一样
- 怎么让WinSock发送出去的邮件是html格式呢?
- 这句语句老提示Select * From (Select * From t_JiChenTable Where ZT='0'错误!!
- 大侠,救命呀
- 一个VB源程序在生成.EXE时总是提示“系统资源不足请退出部分程序再运行”
- 请问ACTIVEX。
- 如何得到拨号连接中的所有连接?
- 怎样实现以下功能??
我好奔呀。呵呵
--------------------
在问个问题:
怎么得到 winamp正播放的歌曲名字和路径