<p>In my application I need to temporarily gray out the minimize button of the main form. Any ideas how this can be achieved? I don't mind doing p/invokes to Win32 dlls.</p>

<p>Edit: Graying out the minimize button would be the preferred solution, but is there any other way of preventing the form from becoming minimized?</p>

```
```
form.MinimizeBox = false;
```
```
or if in the form scope
```
```
MinimizeBox = false;
```
```