G
Guest
I am developing an MDI Windows Forms application using VS.NET 2003 in C#. I
want to display help for the application when the user presses the F1 key. I
have been able to get the HTML Help Viewer to display in a separate form as
shown below.
Is there a way to display the help viewer within an MDI child form (displays
in the main form's client area)?
Thanks,
Dave
###### Current code ######
public class HelpControlBase
{
protected const int HH_HELP_CONTEXT = 0x000F;
protected const string helpClassName = "HH Parent";
protected string appPath;
[DllImport( "HHCtrl.ocx" )]
public extern static int HtmlHelp( int hwnd, string pszFile, int cmd, int
data );
public HelpControlBase()
{
appPath = Application.StartupPath; // Get the application path string.
}
virtual protected int DisplayHelp( int helpID, string fileName )
{
// Open the HelpViewer window.
return HelpControlBase.HtmlHelp( 0, appPath + fileName, HH_HELP_CONTEXT,
helpID );
}
}
want to display help for the application when the user presses the F1 key. I
have been able to get the HTML Help Viewer to display in a separate form as
shown below.
Is there a way to display the help viewer within an MDI child form (displays
in the main form's client area)?
Thanks,
Dave
###### Current code ######
public class HelpControlBase
{
protected const int HH_HELP_CONTEXT = 0x000F;
protected const string helpClassName = "HH Parent";
protected string appPath;
[DllImport( "HHCtrl.ocx" )]
public extern static int HtmlHelp( int hwnd, string pszFile, int cmd, int
data );
public HelpControlBase()
{
appPath = Application.StartupPath; // Get the application path string.
}
virtual protected int DisplayHelp( int helpID, string fileName )
{
// Open the HelpViewer window.
return HelpControlBase.HtmlHelp( 0, appPath + fileName, HH_HELP_CONTEXT,
helpID );
}
}