(10 ) 在窗体上画 1 个命令按钮和 1 个通用对话框 , 其名称分别为 Command1 和 CommonDialog1 ,
下列事件过程:
Private Sub Command1_Click()
CommonDialog1. 【 12 】 =" 打开文件 "
CommonDialog1.Filter="All Files(*.*)|*.*"
CommonDialog1.InitDir="C :\ "
CommonDialog1.ShowOpen
End Sub
该程序的功能是 : 程序运行后 , 单击命令按钮 , 将显示 “ 打开 ” 文件对话框 , 其标题是 “ 打开文件 ” ,在 “ 文件类型 ” 栏内显示 “ AIl Files(*.*) ” ,并显示 C 盘根目录下的所有文件,请填空。