How to include help '?' in title bar of winform

前端 未结 2 1913
独厮守ぢ
独厮守ぢ 2020-12-10 10:12

I am trying to add a help \'?\' button to the title bar (along with minimize, maximize, and close buttons) of my winforms application (C#.NET 2.0). I have tried using the He

相关标签:
2条回答
  • 2020-12-10 10:55

    In addition to the solution you must change FormBorderStyle to FixedDialog. To benefit help functionality use _HelpButtonClicked event in form.

    0 讨论(0)
  • 2020-12-10 11:03

    The Help icon is only there when HelpButton = True and MaximizeBox and MimizeBox are both set to False. This is the windows standard. If you really want to go beyond and add a button anyway, you'll have to customize the titlebar.

    This is not an easy task, it either involves many hooks, or a complete redesign of the title bar.

    Are you sure you want to depart from the Windows standard? Wouldn't it be better to have Help available in the menu or on a toolbar somewhere?

    0 讨论(0)
提交回复
热议问题