用户注册 - 登录代码错误

时间:2016-10-01 08:41:09

标签: c#

我正在为我正在构建的新程序构建的注册表单的代码块出错。

错误是第3行src/main不应该突出显示颜色,并且它会引发错误CS0246。 'Login'也无效

使用VSC2015 C#

new Login()

1 个答案:

答案 0 :(得分:1)

private void Login_Click(object sender, RoutedEventArgs e)
{
    Login login = new Login(); //C# is case sensitive. You passed the object name instead of Class/Form name
    login.Show();
    Close();
}