VB6.0中CommonDialog控件怎么添加使用?
时间:2023-06-05 16:07:31
VB 6.0中CommonDialog控件怎么添加使用?VB 6.0中有很多控件,想要自己添加并使用CommonDialog控件,该怎么操作呢?下面我们就来看看详细的教程,需要的朋友可以参考下
在VB 6.0中想要添加和使用CommonDialog 控件,该怎么添加使用呢?下面我们就来看看详细的教程。
1、首先我们单击菜单“工程”下的“部件”命令,将其弹出“部件”对话框,如下图所示。
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控件的添加方法,希望大家喜欢
标签:VB,VB控件,CommonDialog控件
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Win10怎么样设置效果最好让系统更加人性化
2023-12-16 00:36:41
2022年11月最新显卡性能排行榜 显卡天梯图高清版
2022-10-02 14:10:15
![](https://img.aspxhome.com/file/2023/30/a267976_0s.jpg)
iOS 14 小技巧:增强语音备忘录录音
2023-12-06 22:14:27
![](https://img.aspxhome.com/file/2023/0/a194260_0s.jpg)
Edge浏览器看视频卡顿怎么办?Edge看视频卡顿的解决方法
2022-07-14 21:31:28
![](https://img.aspxhome.com/file/2023/7/a327487_0s.jpg)
手机版WPS Office文字如何添加批注?
2023-07-01 08:52:04
![](https://img.aspxhome.com/file/2023/2/a164582_0s.jpg)
Excel 中如何使用数据透视表进行数据分类汇总
2022-08-13 06:45:04
![](https://img.aspxhome.com/file/2023/2/a154982_0s.png)
小编教你bios恢复出厂设置怎么操作
2022-08-21 19:01:23
![](https://img.aspxhome.com/file/2023/3/a301373_0s.png)
火绒安全软件设置U盘控制教程
2022-08-27 06:44:21
![](https://img.aspxhome.com/file/2023/30/a264665_0s.jpg)
Win7系统USB接口供电不足怎么办?Win7系统USB接口供电不足的解决方法
2023-07-08 11:17:05
![](https://img.aspxhome.com/file/2023/27/a230205_0s.jpg)
微软宣布最新Win11 22623.1037/22621.1037 (KB5021304) Beta预览版推送了!
2023-12-07 20:40:51
![](https://img.aspxhome.com/file/2023/30/a266189_0s.jpg)
雷蛇灵刃怎么重装系统Win10?雷蛇灵刃重装系统Win10的方法
2023-08-31 20:53:53
![](https://img.aspxhome.com/file/2023/25/a217337_0s.png)
Word文档以稿纸格式进行呈现怎么设置
2023-11-28 20:25:04
![](https://img.aspxhome.com/file/2023/1/17971_0s.jpg)
360手机卫士怎么设置来电秀 360手机卫士设置来电秀的方法
2022-09-14 07:55:32
![](https://img.aspxhome.com/file/2023/8/a338279_0s.jpg)
如何在PPT中加入声音
2023-11-10 04:01:38
WPS大小写字母快速转换
2023-10-03 08:19:18
![](https://img.aspxhome.com/file/2023/7/a187467_0s.jpg)
怎样在wps表格中添加附件
2023-09-24 20:52:14
Windows10下把IE固定到任务栏图文教程
2023-06-21 23:19:27
![](https://img.aspxhome.com/file/2023/3/a292385_0s.jpg)
Windows10更新时间段怎么设置?
2022-12-27 15:32:50
![](https://img.aspxhome.com/file/2023/26/a223606_0s.png)
电脑不能复制粘贴怎么办?
2023-10-25 19:40:53
![](https://img.aspxhome.com/file/2023/4/a304993_0s.png)
21H1安装失败显示错误代码0x80073701
2023-01-05 09:30:14
![](https://img.aspxhome.com/file/2023/26/a222066_0s.png)