Things You'll Need:
- Microsoft Visual studio 2005
-
Step 1
Create New VB ProjectFirst, we need something to work with. If you have a VB project already underway, go ahead and open it. If not, create a new one.
-
Step 2
MaximizeBox to FalseThe great thing about making changes like this is that you don't need any other element on your form because it's the form that we're changing. In your properties window under Window Style heading, the two properties we want are MaximizeBox and MinimizeBox. Both default to TRUE. For this first example, set MaximizeBox to FALSE.
-
Step 3
Greyed Maximize ButtonYou can already see the change. The Maximize button in the top right corner is still there, but dim while the Minimize button is full and clear. When you run your application, you'll find that only the Minimize button is clickable.
-
Step 4
Now, if you restore the defaults and then set the MinimizeBox box property to FALSE, you'll get the same result, only reversed. The Maximize button will be clickable and the Minimize button will be greyed out.
-
Step 5
All gone!Should you not want either of the buttons, of course, you would change both of the properties to FALSE. The difference here is that by doing this, you completely remove the buttons. No greyed out buttons remain.













