以下方法可以实现只打开一个帮助文档~~~
有问题请留言~~~~
![](https://i-blog.csdnimg.cn/blog_migrate/6810355c2f78c12e91b7997a8e8c583a.gif)
using
System.Runtime.InteropServices;
.......
[DllImport( " user32.dll " )]
static extern bool WinHelp(IntPtr hWndMain, string lpszHelp, uint uCommand, uint dwData);
private void button1_Click( object sender, EventArgs e)
{
bool ret = WinHelp( this. Handle, " You Help File Path " , 11 , 0 );
}
.......
[DllImport( " user32.dll " )]
static extern bool WinHelp(IntPtr hWndMain, string lpszHelp, uint uCommand, uint dwData);
private void button1_Click( object sender, EventArgs e)
{
bool ret = WinHelp( this. Handle, " You Help File Path " , 11 , 0 );
}