求有丰富经验的vb.net大神解惑!
vb.net吧
全部回复
仅看楼主
level 5
toddmark 楼主
第一段代码如下:
FontDialog1.ShowColor = Ture
FontDialog1.ShowDialog()
IF FontDialog1.ShowDialog() = DialogResult.OK Then
txtFile.Font = FontDialog1.Font
txtFile.ForeColor = FontDialog1.Color
End If
第二段代码:
FontDialog1.ShowColor = Ture
FontDialog1.ShowDialog()
txtFile.Font = FontDialog1.Font
txtFile.ForeColor = FontDialog1.Color
好,我的问题来了。
1.这两段代码有何不同的意义?
2.我在执行的时候。第一段无法保存选中的字体和颜色。第二段反而成功了。求解释。
2012年08月01日 14点08分 1
level 12
第一段 第二行去掉
2012年08月02日 02点08分 2
谢谢,好了!
2012年08月02日 05点08分
1