Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my requirement I need to have both help button and Maximize& Close buttons in my Windows Form title bar.

I can search using form properties. But I could able to have only one option either help or Maximize.

Kindly help me to achieve this scenario.

Thanks in advance

What I have tried:

Using Windows Form Properties option I have tried, but not get solved.
Posted
Updated 26-Jul-17 4:02am
v2
Comments
Sheila Pontes 26-Jul-17 8:12am    
Hi.

See if this article help you. https://www.codeproject.com/Articles/42223/Easy-Customize-Title-Bar

Sorry it's not possible. Down at the windows API level, which underpins the .NET framework, a window cannot be created with both a help button and the min/max buttons.

See Extended Window Styles [^] and scroll down to the entry for WS_EX_CONTEXHELP where it says WS_EX_CONTEXTHELP cannot be used with the WS_MAXIMIZEBOX or WS_MINIMIZEBOX styles.

Alan.
 
Share this answer
 
Comments
vasanthkumarmk 26-Jul-17 8:34am    
Thanks for your comments.... Is any other way to achieve it???
The only way I know is to create your own (customized) Form.
- Switch FormBorderStyle to None
- create the Button's you need at the place you need
- create your own Titlebar
- perhaps add some Properties for the new Design and Behaviour

and now derive from this Form.
 
Share this answer
 
v2
Try with HelpButton = True and MaximizeBox and MimizeBox are both set to False.

Please check this link https://stackoverflow.com/questions/11140090/add-help-button-but-keep-maximize-and-minimize
 
Share this answer
 
v2
Comments
vasanthkumarmk 26-Jul-17 8:35am    
I need both help and Maximize Button....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900