【发布时间】:2010-11-04 23:38:39
【问题描述】:
如何使用 c# 在 windows 窗体中创建键盘快捷键(F1)。 WinChm
【问题讨论】:
如何使用 c# 在 windows 窗体中创建键盘快捷键(F1)。 WinChm
【问题讨论】:
为控件的HelpRequested 事件添加事件处理程序,然后使用Help.ShowHelp。
例如,
private void button1_HelpRequested(object sender, HelpEventArgs hlpevent)
{
Help.ShowHelp(this, "helpfile.chm", HelpNavigator.TopicId, "1234");
}
您可以使用不同的HelpNavigator 选项来显示目录等内容。
更多信息请参见this related question。
【讨论】: