
如下两种方法,
1,
采用默认的浏览器打开FTP站点,不需要知道IE在什么地方,建议采用。
Shell("rundll32
urldll
FileProtocolHandler
ftp://192168100233")
2,采用IE打开,只要更改为你的ie路径就可以了。不建议使用这个方法。
Shell("C:\Program
Files\Internet
Explorer\iexploreexe
ftp://192168100233")
下面的都可以实现,我再给你发另外一种,很猛的
/// <SUMMARY>
/// Creates a COM object given it's ProgID
/// </SUMMARY>
/// <PARAM name="sProgID">The ProgID to create</PARAM>
/// <RETURNS>The newly created object, or null on failure</RETURNS>
public object COMCreateObject(string sProgID)
{
// We get the type using just the ProgID
Type oType = TypeGetTypeFromProgID(sProgID);
if (oType != null)
{
return ActivatorCreateInstance(oType);
}
return null;
}
/// <summary>
/// Opens a new Internet Explorer window and navigates it to the URL
/// This code is for demonstration purposes only
/// From >
以上就是关于如何编写vb.net程序,打开IE浏览器全部的内容,包括:如何编写vb.net程序,打开IE浏览器、利用c#语言程序自动打开浏览器,源码怎么编写、等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)