Private Sub zl_SelChange()
CommonDialog1.Flags = cdlCFEffects Or cdlCFBoth
' 显示“字体”对话框
CommonDialog1.ShowFont
zl.SelBullet = True
zl.SelFontName = CommonDialog1.FontName
zl.SelFontSize = CommonDialog1.FontSize
zl.SelBold = CommonDialog1.FontBold
zl.SelItalic = CommonDialog1.FontItalic
zl.SelUnderline = CommonDialog1.FontUnderline
zl.SelStrikeThru = CommonDialog1.FontStrikethru
zl.SelColor = CommonDialog1.Color
End Sub
这里zl是一个RichTextBox控件。这段代码运行时,只要我选中文字或者将光标移到RichTextBox控件中,就会弹出字体对话框。我不想这样,希望在点击“字体”按钮后才弹出字体对话框,该怎么做?