I am trying to resize a panel through a if-statement like this but am a bit unsure
how the if-statement should look like. I am trying to put if size is (0, 694) for the panel1.

if ( panel1->Size() ==  System:: Drawing:: Size(0, 694) )
{
      this->panel1->Size = System:: Drawing:: Size(360, 694);
}

It was easier than I thought.

if ( this->panel1->Size ==  System::Drawing::Size(360, 694) )
{
     this->panel1->Size = System::Drawing::Size(0, 694);
}