现在打开chm,每次还要点一下chm右上角的最大化按钮,才能让CHM全屏浏览,用代码可以实现在打开时默认最大化吗?
现在打开文件的代码是下面这种方式,要怎么实现呢?
System.Windows.Forms.help.ShowHelp(Nothing, "D:\help.chm", System.Windows.Forms.HelpNavigator.Topic, "0001.htm")
下面两种写法,都没最大化效果
第一种写法:
If ShowAppWindow("help.chm", 2) = False Then
System.Windows.Forms.help.ShowHelp(Nothing, "D:\help.chm", System.Windows.Forms.HelpNavigator.Topic, "0001.htm")
End If
第二种写法:
System.Windows.Forms.help.ShowHelp(Nothing, "D:\help.chm", System.Windows.Forms.HelpNavigator.Topic, "0001.htm")
ShowAppWindow("help.chm", 2)
[此贴子已经被作者于2024/4/2 21:07:27编辑过]