   how to ... C#
  maximize a window programaticly in C# ?   
  Set the Form.WindowState property to FormWindowState.Mazimized.   ;  nice one cheers.one more though - i cant identify the event for when someone closes the form. It isnt deactivate is it? i thought that makes it grey[EDIT]forget that - i thought this.Created was only set once. but it seems it changes to false when windows closes. poor naming imho   ;  Just for the sake of completeness, there's also the Closed and Closing events.-AJ   ;  Form.FormClosing or Form.FormClosed?Quote:forget that - i thought this.Created was only set once. but it seems it changes to false when windows closes. poor naming imhoIt refers to the underlying window handle. In some cases, Windows Forms will have to dispose and possibly recreate the window handle under the covers. .Created tells you whether the window handle has been created and is valid.   