【发布时间】:2020-11-01 12:25:42
【问题描述】:
使用 Visual Studio 2019 WPF 应用 尝试使用以前对我有用的代码打开网页,但现在出现错误
我收到一条错误消息说 System.ComponentModel.Win32Exception: '系统找不到指定的文件。'
也想在Chrome中打开页面
using System;
using System.Windows;
using System.Diagnostics;
private void Button_Click_1(object sender, RoutedEventArgs e)
{
Process.Start("https://www.google.com");
}
【问题讨论】:
-
尝试使用 https 而不是 http
标签: c#