FileName: String;
The FileName property determines help file name and path.
NOTE. If the path to help file is not specified, the file is searched in the folder, from which the current platform instance is started.
Executing the example requires a form, a button on it and the C:\Help\Project.chm help file. The example is a handler of the OnClick event for the Button1 component.
Add a link to the UI system assembly.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Help: IWinApplicationHelp;
Begin
Help := WinApplication.Help;
Help.FileName := "C:\Help\Project.chm";
Help.DisplayContents;
End Sub Button1OnClick;
Clicking the button opens the specified help file on the Contents tab.
The requirements and result of the Fore.NET example execution match with those in the Fore example. Use Fore.NET analogs instead of Fore components.
Imports Prognoz.Platform.Interop.Ui;
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
WinAppCls: WinApplicationClass = New WinApplicationClassClass();
Help: IWinApplicationHelp;
Begin
Help := WinAppCls.Help;
Help.FileName := "C:\Help\Project.chm";
Help.DisplayContents("");
End Sub;
See also: