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.
大家好,我正在制作一个学校项目,我正在使用 C# 中的 Windows 窗体应用程序制作一个简单的应用程序。
我的问题是我可以在我的项目中将链接标签与另一个表单链接起来,所以当我按下链接标签时,它会引导我进入另一个表单(窗口),如果是,我应该使用哪个代码。
谢谢
像这样的东西?
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { Form2 newForm = new Form2(); newForm.ShowDialog(); }