Maximize Box and HelpButton

M

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
 
C

Claudio Grazioli

On Tue, 12 Apr 2005 10:07:21 +0530, Mohan wrote:

Mohan,
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
 

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

Top