c#问题FontDialog控件
来源:百度知道 编辑:UC知道 时间:2024/09/28 09:33:02
怎么用TextBox控件接受FontDialog控件设置字体的值。
从而改变textbox1的Text上的字体
从而改变textbox1的Text上的字体
if (fontDialog1.ShowDialog() == DialogResult.OK)
{
this.textBox1.Font = fontDialog1.Font;
}
FontDialog fd = new FontDialog();
fd.ShowDialog();
this.textBox1.Font = fd.Font;
可以把代码放到你想放的地方
EASY的问题啊,才学C#吧。
if (fontDialog1.ShowDialog() == DialogResult.OK)
{
this.textBox1.Font = fontDialog1.Font;
}
都看看书,书上有的