0

Hi,

It is possible to drag a Forms width.

What I want is to prevent a user to drag the Forms width more than the value 405.
I have tried out with the code below but nothing happens when I drag the width of the form. Thanks!

private: System::Void Form1_SizeChanged(System::Object^  sender, System::EventArgs^  e) 
			 {
		 
				 if( Form1::Width > 405 )
				 {
					 Form1::Width == 405;
				 }
			 
			 }
2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by Jennifer84
0

Thanks jonsca, I didn´t know that was possible.

It worked out perfectly. Thank you!

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.