| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1323 人关注过本帖
标题:求救啊急急 急~~~~VB路径问题~
取消只看楼主 加入收藏
の魂で
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2007-12-13
收藏
 问题点数:0 回复次数:2 
求救啊急急 急~~~~VB路径问题~
就是想让LISTBOX里面选中的边成要打开的路径啊      
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

Private Sub Command1_Click()

    ShellExecute hwnd, "Open", "e:\123\", "", "", 1
End Sub                          ↑这里是路径
                        

大家9999我吧~~~
图片附件: 游客没有浏览图片的权限,请 登录注册
搜索更多相关主题的帖子: 路径 ByVal String Long 
2007-12-13 22:22
の魂で
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2007-12-13
收藏
得分:0 
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

Private Sub Command1_Click()

    ShellExecute hwnd, "list1.text", "", "", "", 1
End Sub        

ShellExecute hwnd, "open", "list1.list", "", "", 1

都不可以啊汗汗汗~~~~~~~

[[italic] 本帖最后由 の魂で 于 2007-12-14 12:33 编辑 [/italic]]
2007-12-14 12:28
の魂で
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2007-12-13
收藏
得分:0 
哇~~~感谢那~~我要哈好学学~~我素个新手还请大家多教教哈~
2007-12-14 17:34
快速回复:求救啊急急 急~~~~VB路径问题~
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.016431 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved