// 显示帮助目录
private void miContent_Click(object sender, System.EventArgs e)
{
Help.ShowHelp(this,"C://WINNT//Help//Gstart.chm" );
}
// 显示帮助索引
private void miIndex_Click(object sender, System.EventArgs e)
{
Help.ShowHelpIndex(this,"C://WINNT//Help//Gstart.chm" );
}
// 显示搜索页面
private void miSearch_Click(object sender, System.EventArgs e)
{
Help.ShowHelp(this,"C://WINNT//Help//Gstart.chm",HelpNavigator.Find,"" );
}
// 在状态栏中动态显示菜单项的提示信息
private void DisplayMenuItemTip(object sender, System. Event Args e)
{
if( sender == miContent )
statusBar1.Text = "显示帮助文件的目录";
else if( sender == miIndex )
statusBar1.Text = "显示帮助文件的索引";
else
statusBar1.Text = "显示帮助文件的搜索页面";
}
private void miContent_Click(object sender, System.EventArgs e)
{
Help.ShowHelp(this,"C://WINNT//Help//Gstart.chm" );
}
// 显示帮助索引
private void miIndex_Click(object sender, System.EventArgs e)
{
Help.ShowHelpIndex(this,"C://WINNT//Help//Gstart.chm" );
}
// 显示搜索页面
private void miSearch_Click(object sender, System.EventArgs e)
{
Help.ShowHelp(this,"C://WINNT//Help//Gstart.chm",HelpNavigator.Find,"" );
}
// 在状态栏中动态显示菜单项的提示信息
private void DisplayMenuItemTip(object sender, System. Event Args e)
{
if( sender == miContent )
statusBar1.Text = "显示帮助文件的目录";
else if( sender == miIndex )
statusBar1.Text = "显示帮助文件的索引";
else
statusBar1.Text = "显示帮助文件的搜索页面";
}
本文介绍了一个使用C#实现的帮助系统调用示例,包括如何通过代码调用帮助目录、帮助索引及搜索页面,并展示了如何动态地在状态栏中显示当前选择菜单项的提示信息。

被折叠的 条评论
为什么被折叠?



