Maximizing Event (Or Not)
-
What is the event that is fired when maximizing a form? or minimizing for that matter. I currently have put a delegate on the Resize event and checking for FormWindowState.Maximized. Is this the only way of doing it? or even the correct way? Basically i dont want to actually maximize my form. I want to change its height to a certain value while not changing the top and left of the form. But the WindowsState is only changed to FormWindowState.Maximized when the form is actually maximized and not before when it starts. Any help is appreciated. --ABT
-
What is the event that is fired when maximizing a form? or minimizing for that matter. I currently have put a delegate on the Resize event and checking for FormWindowState.Maximized. Is this the only way of doing it? or even the correct way? Basically i dont want to actually maximize my form. I want to change its height to a certain value while not changing the top and left of the form. But the WindowsState is only changed to FormWindowState.Maximized when the form is actually maximized and not before when it starts. Any help is appreciated. --ABT
Hi I had the same problem. .NET doesent raises any specific event when the windowState of a form changes except the resize event. Else u can catch the WM_XXX message in "WndProc" method Thanks :) Srinivas
-
Hi I had the same problem. .NET doesent raises any specific event when the windowState of a form changes except the resize event. Else u can catch the WM_XXX message in "WndProc" method Thanks :) Srinivas
Thanks but i have never overriden this method before. Where do i get the values of WM_XXX and other message constants?