Visual Basic 2005-Web浏览器 [英] Visual Basic 2005 - Web Browser

查看:65
本文介绍了Visual Basic 2005-Web浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

另一个问题,我正在创建一个网络浏览器,在我的浏览器的右侧是已下载文件的列表,我已经创建了它,但是问题是,当我双击它时,我需要播放它,所以如何会吗我使用FILELISTBOX1和AXWINDOWSMEDIAPLAYER1

Another Question, Im creating a web browser and on the right side of my browser is list of downloaded files, ive created it already, but the thing is, i need to play it, when i double click it, so how to do it? im using FILELISTBOX1 and AXWINDOWSMEDIAPLAYER1

推荐答案

通常,您可以使用System.Diagnostics.Process.Start("filepath")使用与文件扩展名关联的默认程序打开计算机中的任何文件.就像在Windows资源管理器中双击文件一样.
In general you can use System.Diagnostics.Process.Start("filepath") to open any file in your computer with the default program associated with the file extension. It''s just like double-clicking the file in the Windows Explorer.


如何使用它播放mp3文件?我的列表在filelistbox中,我有媒体播放器,但我不能播放
how to play mp3 files using it? my list is in filelistbox and i have media player but i cant play it


这篇关于Visual Basic 2005-Web浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆