| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 2975 人关注过本帖
标题:小白求教System.ComponentModel.Win32Exception:“系统找不到指定的文件。” ...
只看楼主 加入收藏
xiancn
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2020-12-4
结帖率:0
收藏
已结贴  问题点数:20 回复次数:1 
小白求教System.ComponentModel.Win32Exception:“系统找不到指定的文件。”
LinkLabel 打开网址提示如下

“系统找不到指定的文件。”

代码
程序代码:
    Private Sub LinkLabel1_LinkClicked(sender As Object, e As LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked
        System.Diagnostics.Process.Start("https://www.baidu.com/")
    End Sub


详细信息

  HResult=0x80004005
  Message=系统找不到指定的文件。
  Source=System.Diagnostics.Process
  StackTrace:
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start(String fileName)
   at Time.Form1.LinkLabel1_LinkClicked(Object sender, LinkLabelLinkClickedEventArgs e) in C:\Users\Jome\source\repos\Time\Time\Form1.vb:line 11
   at System.Windows.Forms.LinkLabel.OnLinkClicked(LinkLabelLinkClickedEventArgs e)
   at System.Windows.Forms.LinkLabel.OnMouseUp(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Label.WndProc(Message& m)
   at System.Windows.Forms.LinkLabel.WndProc(Message& msg)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)
搜索更多相关主题的帖子: Forms Diagnostics System Process Windows 
2020-12-08 21:37
apull
Rank: 16Rank: 16Rank: 16Rank: 16
来 自:三体星系
等 级:版主
威 望:216
帖 子:1479
专家分:9055
注 册:2010-3-16
收藏
得分:20 
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo.FileName = "iexplore.exe";
process.StartInfo.Arguments = "http://www.baidu.com";
process.Start();
2020-12-09 13:38
快速回复:小白求教System.ComponentModel.Win32Exception:“系统找不到指定的文 ...
数据加载中...
 
   



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

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