vb CommonDialog 颜色框
发布网友
发布时间:2022-11-24 23:48
我来回答
共2个回答
热心网友
时间:2023-10-05 10:18
'颜色
Private Sub Command1_Click()
CommonDialog1.ShowColor '显示颜色对话框
Text1.BackColor = CommonDialog1.Color 'text1背景色设为颜色框返回值
End Sub
'字体
Private Sub Command1_Click()
CommonDialog1.Flags = cdlCFBoth '设标志
CommonDialog1.ShowFont
Text1.Font.Bold = CommonDialog1.FontBold
Text1.Font.Name = CommonDialog1.FontName
Text1.Font.Size = CommonDialog1.FontSize
Text1.Font.Italic = CommonDialog1.FontItalic
Text1.FontStrikethru = CommonDialog1.FontStrikethru
Text1.Font.Underline = CommonDialog1.FontUnderline
End Sub
热心网友
时间:2023-10-05 10:18
dim BackValue as long
BackValue=CommonDialog.filename