Maximize a window programmatically and prevent the user from changing the windows state

Viewed 120958

How do I maximize a window programmatically so that it cannot be resized once it reaches the maximized state (for example, maximize Internet Explorer and see it)?

I set FormWindowState property as

this.WindowState = FormWindowState.Maximized;
this.MaximizedBounds = (x,y);

but it doesn't work. How do I do this?

The window I want to maximize is a window in my application.

5 Answers
Related