0

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);
}
1
Contributor
1
Reply
2
Views
10 Years
Discussion Span
Last Post by Jennifer84
0

It was easier than I thought.

if ( this->panel1->Size ==  System::Drawing::Size(360, 694) )
{
     this->panel1->Size = System::Drawing::Size(0, 694);
}
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.