I am using C# in visual studio, all I want to do is open a pre-existing form by clicking a button in a WPF app?

Nicodemus

New member
The button code:

private void button2_Click(object sender, RoutedEventArgs e)
{
Form1.Show();
}

The path to my form in the solution:
DatabaseForms.Forms.Form1

Why to I keep getting an object reference is required error?
 
Back
Top