在VB中如何添加OpenFileDialog控件

来源:百度知道 编辑:UC知道 时间:2024/05/29 01:32:35

1
ctrl+t,添加 microsoft Common dialogue control,勾上,

2,
添加刚才工具箱里多出来的commondialogue到form上

3,
需要打开的时候,用下面的代码,显示打开文件对话框
CommonDialog1.ShowOpen