- wordpress教程菜鸟教程:重新选用当前Word2010文档使用的模板
- pdf怎么转换成word:如何使得word中插入的尾注显示1,2,3而不是i,ii
- word制作简历教程:Word2007中大小写字母转换的妙用
- wps转换为word文档教程:Pdf文档怎么添加超链接? Pdf添加另一个文件超链接的教程
在VB 6.0中想要添加和使用CommonDialog 控件,该怎么添加使用呢?下面我们就来看看详细的教程。
1、首先我们单击菜单“工程”下的“部件”命令,将其弹出“部件”对话框,WORD上下页,如下图所示。
2、接着我们在“部件”对话框下的“控件”选项卡下选中Microsoft Common Dialog Control 6.0,单击确定既可以在左侧的控件工具箱中显示 Common Dialog控件。
3、在左侧的控件工具箱中拖拉刚才添加的Common Dialog控件到窗体中即可添加该控件。
4、再从左侧控件工具箱中拖拉一个命令按钮到窗体中,双击该命令按钮进入代码编辑窗口。
5、输入以下代码Private Sub Command1_Click(),Me.CommonDialog1.ShowOpen, MsgBox Me.CommonDialog1.FileName,End Sub双击运行,将弹出选择文件对话框,选中文件后单击“打开“将弹出刚才选择的文件的路径+名称。
总结:
1.我们单击菜单工程下的部件命令。
2.选中Microsoft Common Dialog Control 6.0。
3.最后我们输入代码就可以了。
以上就是VB6.0中CommonDialog控件的添加方法,希望大家喜欢,请继续关注脚本之家。
上一篇:word教程视频全集自学:VB6.0中CommonDialog控件怎么添加使用? 下一篇:word教程零基础教程免费:PPT2019文本编辑有什么技巧 Office2019 PPT找不到发布命令的解决方法
郑重声明:本文版权归原作者所有,转载文章仅为传播更多信息之目的,如作者信息标记有误,请第一时间联系我们修改或删除,多谢。