Click here to Skip to main content
15,922,309 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi friends..
I want to know whether the form is resized or not..
if resized.. then i want to know is it increasd or decreased size of the form.

can anyone help me..

thanks in advance..

1 solution

Form is always resized. :-) So, resized compared to what? Handle System.Windows.Forms.Form.Resize event or override System.Windows.Forms.Form.OnResize method. In the handler (or the body of overridden method) do what you want: remember "old" Form.Size, set a Boolean flag "IsResized" or implement the other logic you might imply by your question.

Share this answer
Harish Reddy K 9-May-11 2:30am    
thankq... plz tell me how to remember the old size of the form..

thankq once again...
Sergey Alexandrovich Kryukov 9-May-11 3:16am    
What are your even asking about? It should be your logic, not mine... and you did not even explain the purpose...
Assignment operator. Add some member(s) to you class of your form and assign to it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900