vb Common Dialpg 控件求教

来源:百度知道 编辑:UC知道 时间:2024/09/23 03:09:21
参看:http://industry.ccidnet.com/art/1077/20050828/820777_1.html
他所说的:在Form1窗口中添加一个Common Dialpg控件,用于选择本地硬盘中的HTML文件。
这个控件是什么控件?怎么用?怎么填加这个控件?控件所指如有错误,那么应该是哪个控件呢?谢谢各位了。

选择方法
工具栏鼠标右键,然后选部件-microsoft common dialog control 6.0

作用:一个文件对话框模块。可以实现选择文件

代码中写
CommonDialog1.FileNameOpen
Text1.text = CommonDialog1.FileName
结果text1中显示的就是你选择文件的完整路径名了

部件-microsoft common dialog control 6.0

部件-microsoft common dialog control 6.0

CommonDialog控件

CommonDialog1.ShowOpen
fname = CommonDialog1.FileName