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
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.我在执行的时候。第一段无法保存选中的字体和颜色。第二段反而成功了。求解释。