| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1451 人关注过本帖
标题:为什么我写的程序别人拿去运行提示路径未找到,
取消只看楼主 加入收藏
a414715440
Rank: 2
等 级:论坛游民
帖 子:37
专家分:26
注 册:2011-8-28
结帖率:100%
收藏
已结贴  问题点数:20 回复次数:0 
为什么我写的程序别人拿去运行提示路径未找到,
我写的个小程序,别人拿去运行,就提示路径未找到,这个文件和程序之间是不是也存在相对路径和绝对路径的问题呢,该怎么去处理这个问题呢,请看代码


Private Sub Form_Load()
lab1.FontSize = 30
lst1.Clear
lst1.FontSize = 20
lst1.AddItem "艾丽莎乐"
lst1.AddItem "苍井空"
lst1.AddItem "川岛和津实"
lst1.AddItem "饭岛"
lst1.AddItem "福冈亚也"
lst1.AddItem "酒井法子"
lst1.AddItem "栗田梨子"
lst1.AddItem "山口美树"
lst1.AddItem "夏川纯"
lst1.AddItem "小泽玛利亚"
lst1.AddItem "小泽圆台"
lst1.AddItem "原纱央莉"
pic1.Picture = LoadPicture("E:\image\ailishale.jpg")
lst1.Selected(0) = True


End Sub



Private Sub lst1_Click()
If lst1.Selected(0) = True Then
pic1.Picture = LoadPicture("E:\image\ailishale.jpg")
ElseIf lst1.Selected(1) = True Then
pic1.Picture = LoadPicture("E:\image\cangjingkong.jpg")
ElseIf lst1.Selected(2) = True Then
pic1.Picture = LoadPicture("E:\image\chuangdaohejingshi.jpg")
ElseIf lst1.Selected(3) = True Then
pic1.Picture = LoadPicture("E:\image\fandao.jpg")
ElseIf lst1.Selected(4) = True Then
pic1.Picture = LoadPicture("E:\image\fugangyaye.jpg")
ElseIf lst1.Selected(5) = True Then
pic1.Picture = LoadPicture("E:\image\jiujingfazi.jpg")
ElseIf lst1.Selected(6) = True Then
pic1.Picture = LoadPicture("E:\image\litianlizi.jpg")
ElseIf lst1.Selected(7) = True Then
pic1.Picture = LoadPicture("E:\image\shankaomeishu.jpg")
ElseIf lst1.Selected(8) = True Then
pic1.Picture = LoadPicture("E:\image\xiachuangchun.jpg")
ElseIf lst1.Selected(9) = True Then
pic1.Picture = LoadPicture("E:\image\xiaozemaliya.jpg")
ElseIf lst1.Selected(10) = True Then
pic1.Picture = LoadPicture("E:\image\xiaozeyuantai.jpg")
ElseIf lst1.Selected(11) = True Then
pic1.Picture = LoadPicture("E:\image\yuanshayangli.jpg")
End If

End Sub
搜索更多相关主题的帖子: 丽莎 酒井法子 小泽玛利亚 苍井空 夏川纯 
2011-09-11 23:26
快速回复:为什么我写的程序别人拿去运行提示路径未找到,
数据加载中...
 
   



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

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