help button

  • Thread starter Thread starter Bruno van Dooren
  • Start date Start date
B

Bruno van Dooren

Hi,

Could anyone please explain to me why i need to disable the minimize and
maximze button if i want to display the help button on a windows form? i
can't see the connection...

kind regards,
Bruno.
 
Hi Bruno,
From documentation
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemwindowsformsformclasshelpbuttontopic.asp
we can get that "The value of the HelpButton property is ignored if the
maximize or minimize boxes are shown."
I think that is because the WS_EX_CONTEXTHELP extended window style is
not compatible with the WS_MINIMIZEBOX or WS_MAXIMIZEBOX styles.
However you can add a button to the caption bar with '?', if you like.


Rhett Gong [MS]
Microsoft Online Partner Support

This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only. Thanks.
 
However you can add a button to the caption bar
with '?', if you like
--- How do we do this ?

Regards
Kamal
 
Thanks Rhett, Any links that can help me in designing
Caption button for .Net Windows forms in C# ?
 
Hi,
You can override the WndProc, and try to handle WM_NCPAINT to add your
button in caption bar. Here is an article using vc. You can follow it to
achieve your goal.
http://www.catch22.org.uk/tuts/titlebar.asp
Hope this helps.

Rhett Gong [MS]
Microsoft Online Partner Support

This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only. Thanks.
 
Back
Top