Hey guys, I'm having trouble with an error message in my code, would you mind taking a look and helping me out?
private void button1_Click(object sender, RoutedEventArgs e)
{
if (textBox1.Text == "user" && passwordBox1.Password == "password")
{
Window2 W2;
{
W2 = new Window2();
W2->Show;
}
Close();
}
}
The error is: The * or -> operator must be applied to a pointer
and: Only assignment, call, increment, decrement, and new object expressions can be used as a statement
(The error occurs on the "W2->Show;" line)
I really appriciate your time!!
Thanks,
TSims11