Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的 Windows 窗体中,我想添加按钮或链接,单击它们将重定向我以打开另一个页面(.txt 文件和 .img 文件)。怎么做 ?
在您的事件处理程序中,您可以直接调用:Process.Start("C:\\myText.txt");
Process.Start("C:\\myText.txt");
除了Nitin 的回答之外,它在像这样添加“@”后开始为我工作:
System.Diagnostics.Process.Start(**@**"C:\\myText.txt");