Hide Form's Maximize Button

Peter Volz 1,295 Reputation points
2024-03-05T21:09:35.9633333+00:00

Hello experts,

In a Windows Forms App (.NET Framework 4.5 or 4.8) how to hide the maximize button of a FixedSingle form?

I Set MaximizeBox to False, while Minimize is enabled, and need to hide the middle Max button.

Please advise and help if there's a safe way to do so.

Highly appreciate in advance :)

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,821 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,713 questions
{count} votes

Accepted answer
  1. Jiachen Li-MSFT 30,931 Reputation points Microsoft Vendor
    2024-03-06T05:42:21.0466667+00:00

    Hi @Peter Volz ,

    Winform does not support hiding Maximize Button alone.

    You can simulate the effect of hiding the Maximize Button separately by creating a borderless form and creating your own title bar using a panel or other control at the top of the form.

    Best Regards.

    Jiachen Li


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Peter Volz 1,295 Reputation points
    2024-03-07T22:01:38.3533333+00:00

    Thanks all, I hoped there's an easier way to go like importdll :)

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.