要选择的字体对话框特定字体 [英] font dialog specific font to be selected

查看:73
本文介绍了要选择的字体对话框特定字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





i我正在使用字体对话框并通过访问将其值保存在数据库中

我的问题是我想要特定的字体名称从数据库中选择的时候



fontdialog.ShowDialog(me)叫做



说我有字体在我从数据库中检索到的某个变量

当我调用fontdialogBox时我想要选择的特定字体



i am using font dialog box and saving its values in databases through access
my problem is i want particular font name from database to be selected when

fontdialog.ShowDialog(me) is called

say i have font in some variable which i retrieved from database
that particular font i want to be selected when fontdialogBox is called

推荐答案

创建字体,使用字体构造函数 [ ^ ]并将其传递给 FontDialog ,例如:

Create the font, using the Font class constructor[^] and pass it to the FontDialog, for instance:
Dim fd As FontDialog = New FontDialog
fd.Font = New Font("Arial", 20)
If fd.ShowDialog() <> DialogResult.OK Then
  '...
End If
'...


这篇关于要选择的字体对话框特定字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆