Home All Groups Group Topic Archive Search About

Maximize Box and HelpButton

Author
12 Apr 2005 4:37 AM
Mohan
Hi,

    I am C# Beginner.

    I want to develop an Form Based application, form should contain the
Minimize box and Help Button.

    When I tried,

this.MaximizeBox = false;
this.MinimizeBox = true;
this.HelpButton = true;

       Form Displays the Minimize box and disabled Maximize box, but not the
Help button. But I want Minimize box and Help Button.

What I should for that..???

Thanks,
Mohan

Author
12 Apr 2005 6:57 AM
Claudio Grazioli
On Tue, 12 Apr 2005 10:07:21 +0530, Mohan wrote:

Mohan,

Show quoteHide quote
>
>     I want to develop an Form Based application, form should contain the
> Minimize box and Help Button.
>
>     When I tried,
>
> this.MaximizeBox = false;
> this.MinimizeBox = true;
> this.HelpButton = true;
>
>        Form Displays the Minimize box and disabled Maximize box, but not the
> Help button. But I want Minimize box and Help Button.
>
> What I should for that..???
>

From the documentation of the HelpButton property of the form class:

"When this property is set to true, a small button with a question mark
appears in the caption bar to the left of the close button. You can use
this button to display help for your application. You can create an event
handler for the HelpRequested event of the Control class to display Help
information to the user when the Help button of the form is clicked.

The value of the HelpButton property is ignored if the maximize or minimize
boxes are shown."

As you can see in the last sentence you can either have the HelpButton or
the Minimize/Maximize boxes. That's by design.

hth
--
Claudio Grazioli
http://www.grazioli.ch

Bookmark and Share