[英]How do i go back to the previous form in c#
public ControlPanel(string userInfo)
{
InitializeComponent();
lblUserInfo.Text = userInfo;
}
I'm trying to go to the form above using the code below, an error message occurs: 我正在尝试使用下面的代码转到上面的表格,发生错误消息:
there is no argument given that corresponds to the required formal parameter 'user info'
没有给出与所需形式参数“用户信息”相对应的参数
{
this.Hide();
ControlPanel cp = new ControlPanel();
cp.ShowDialog();
}
ControlPanel
constructor requires string userInfo
parameter. ControlPanel
构造函数需要string userInfo
参数。
this.Hide();
ControlPanel cp = new ControlPanel("SomeUserInfo");
cp.ShowDialog();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.