如何以包括帮助“?”在winform的标题栏 [英] How to include help '?' in title bar of winform

查看:129
本文介绍了如何以包括帮助“?”在winform的标题栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想加一个帮助?按钮,我的WinForms应用程序(C#.NET 2.0)的标题栏(带最小化,最大化一起,和关闭按钮)。我已经使用表格的帮助按钮物业试过,但它不工作。有什么建议?

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 Help Button property of Form, but it does not work. Any suggestions?

推荐答案

帮助图标只有在那里当HelpButton = True和MaximizeBox和MimizeBox都设置为False。这是Windows的标准。如果你真的想超越反正添加一个按钮,你就必须自定义标题栏。

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.

您确定要在Windows标准出发?那岂不是更好地在菜单或工具栏上的某个地方提供帮助?

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?

这篇关于如何以包括帮助“?”在winform的标题栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆