将帮助图标添加到WinForms表单标题栏 [英] Adding help icon to WinForms form titlebar

查看:126
本文介绍了将帮助图标添加到WinForms表单标题栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

某些Windows本机应用程序在标题栏上有一个问号图标。它通常位于右边缘,靠近关闭按钮。如何在C#WinForms应用程序中执行此操作?我想要一个适用于Windows XP的解决方案。

Some Windows native applications have a question mark icon on the title bar. It's usually at the right edge, just near the close button. How can I do this in a C# WinForms application? I'd like a solution that works in Windows XP onward.

推荐答案

设置表单的 HelpButton 属性为True。您还需要将MaximizeButton和MinimizeButton属性设置为False。

Set the form's HelpButton property to True. You also need to have the MaximizeButton and MinimizeButton properties set to False.

这篇关于将帮助图标添加到WinForms表单标题栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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