I am trying to do speech recognition for my application. I have the Speech Recognition form (Form2) and my main form (Form1). I want to find a way to maximize Form1 from Form2. I have already learned about speech recognition and I don't need help with that, but any help with this problem would be greatly appreciated!
//Form1
public void Maximize()
{
this.WindowState = FormWindowState.Maximized;
}
//Form2
private void Maximize_Form1()
{
Form1 form = new Form1();
form.Maximize();
}
I have tried the "Show" way, but that makes a whole new window. Please Help.
Thank You.