Link to home
Start Free TrialLog in
Avatar of VBdotnet2005
VBdotnet2005Flag for United States of America

asked on

Min, Max, Close program

how can I do this in code or property ? Min, Max, Close program on the top right. I don't want a user to be able to use them when the program do certain things.
Avatar of VBRocks
VBRocks
Flag of United States of America image

       Me.WindowState = FormWindowState.Maximized
        Me.WindowState = FormWindowState.Minimized
        Application.Exit()

Avatar of VBdotnet2005

ASKER


I meant to disable them

below is not what I am looking for.

      Me.WindowState = FormWindowState.Maximized
        Me.WindowState = FormWindowState.Minimized
        Application.Exit()
ASKER CERTIFIED SOLUTION
Avatar of VBRocks
VBRocks
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Remove Min/Max Buttons From MDI Form
I don't see

Me.ControlBox = False
In Design View, click on the Form, then look in the Properties window, you should see a ControlBox property that can be set to False.

thank you  :)