Disable Normal button of the window

  • Thread starter Thread starter Yasutaka Ito
  • Start date Start date
Y

Yasutaka Ito

Hi,

Is there any way to disable the "Normal" button of the form? A button
displayed between the Minimum and Maximize button?

I want the user to be allowed to either minimized or maximized, but not set
the window state to normal.

thanks!
-Yasutaka
 
* "Yasutaka Ito said:
Is there any way to disable the "Normal" button of the form? A button
displayed between the Minimum and Maximize button?

I want the user to be allowed to either minimized or maximized, but not set
the window state to normal.

Set the 'MaximizeBox' property to 'False'.
 
Hi Yasutaka,

If you want it very easy just do in the resizing event from the form

If Me.WindowState = FormWindowState.Normal Then
Me.WindowState = FormWindowState.Maximized
End If

It is not disapeared but it is disabled in this way.

Cor
 
Thanks. Yes, that's what I'm having to do right now, but
there still will be te animation effect. I want the form to
stay maximized unaffected of the click the user does on
the Normal button.

Appreciate your inputs...

thanks!
-Yasutaka
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top