C# .NET - How to navigate to partiuclar page in help file in windows application?

Asked By Eswaran Radhakrishnan
18-Nov-08 05:32 AM

Hi all,

I displayed a help file when the user press key "F1" in WINDOWS Application. So when the user press key "F1" it shows the user defined help file as separate form. This help file contains contents with navigation. If we click on the any one of them that navigate you to the target file. But that target file displayes with the same form.  The thing is when the user enter to the sub form of the main form and the user press key "F1" what happening is that will navigate to the targer file which is related to the sub form instead of showing up the main file. So How to navigate to particular page in help when the user press key "F1".

Thanks

R. Eswaran.

re  re

18-Nov-08 05:40 AM

Developing the connection between the Windows .NET application and the help file

The final stage is to establish the connection between forms and form controls of a Windows .NET application with the help file and individual help topics. This is done with Visual Studio or the Visual Studio Express products to set the appropriate properties of the forms and to connect the Help button with Visual Basic or C# code. In the case of Ferrysoft Help Desk Administrator, Visual Basic is used as the source code language.

The image below shows Visual Basic Express with the Main form open.

Visual Basic Express

The Windows Forms HelpProvider component is used to associate a help file with the application. Therefore a HelpProvider needs to be added to each form as follows:

  1. Open the form in Design View.
  2. Drag a HelpProvider control from the All Windows Forms Toolbox to the form. When it is added to the form, the HelpProvider component appears in the tray at the bottom of the Windows Forms Designer.
  3. Set the properties of the HelpProvider in the properties window. In the case of Ferrysoft Help Desk Administrator, the only property that needs setting is HelpNamespace which is set to the name of the help file, that is Administrator.chm.

If the name of the HelpProvider has been left as HelpProvider1 then each control of the form that can provide help, including the form itself will now have these properties:

  • HelpKeyword on HelpProvider1
  • HelpNavigator on HelpProvider1
  • HelpString on HelpProvider1
  • ShowHelp on HelpProvider1

In order to connect a form to its corresponding help topic, each control of the form and the form itself must have properties set as follows:

  1. Set HelpKeyword on HelpProvider1 to the name of the HTML topic file, in this case Main.htm.
  2. Set HelpNavigator on HelpProvider1 to Topic.
  3. HelpString on HelpProvider1 can be left blank.
  4. Set ShowHelp on HelpProvider1 to True.

This is sufficient to complete the connection of the form to the help file so that when the user presses the F1 key, the help file will open at the appropriate topic.

If a Help button is required on the form to do the same thing then the following additional steps are necessary:

  1. Open the form in Design View.
  2. Drag a Button control from the All Windows Forms Toolbox to the form.
  3. Set the properties of the Button in the properties window, for example, Name to cmdHelp and Text to Help.
  4. Connect the Click action of the Button control using the code that follows.
Visual Basic
Private Sub cmdHelp_Click( _
    ByVal sender As Object, _
    ByVal e As System.EventArgs) _
    Handles cmdHelp.Click
    System.Windows.Forms.Help.ShowHelp( _
        Me, _
        HelpProvider1.HelpNamespace, _
        System.Windows.Forms.HelpNavigator.Topic, _
        HelpProvider1.GetHelpKeyword(Me))
End Sub

The image below shows Ferrysoft Help Desk Administrator with the Main window open.

Ferrysoft Help Desk Administrator

If the user presses the Help button or presses the F1 key while the focus is anywhere on the window then HTML Help opens and displays the help file to the user.

The image below shows HTML Help with the Main window help topic open.

Ferrysoft Help Desk Administrator Help

Conclusion

Using HTML Help Workshop and Visual Studio or the Visual Studio Express products, it is possible to quickly develop on-line help that will enhance the usability of a Windows .NET application.

I need to move to the sub tiles that depends on the form related  I need to move to the sub tiles that depends on the form related

18-Nov-08 07:19 AM

Hi,

I need to move to the sub tiles page in help file(.hlp file) when the user press key "F1" that depends on the form related. For an instance, If the user press key "F1" when main form is showing then we need to open the help file page which has the Content name "Form Main" and if the user moves to the login screen then if the user press key "F1" then we need to open the "Login Form" detalis which is the sub title of the help file.

How to do that?

Thanks

R. Eswaran.

 

try this link  try this link

19-Nov-08 07:00 AM
http://www.softcoded.com/web_design/java_help_files.php
http://msdn.microsoft.com/en-us/library/ms951278.aspx
Create New Account
help
visual studio installation problem Actually, my OS is Windows Xp with service pack2.I added service pack3 to install visual studio2010.after that i tryed to installed, but am getting SETUP FAILED due to "Windows XP is not installed. [08 / 10 / 11, 14:26:00] VS70pgui: [2] DepCheck indicates Microsoft Visual F# 2.0 Runtime was not attempted to be installed. [08 / 10 / 11, 14:26:00] VS70pgui: [2] DepCheck indicates Microsoft Visual Studio Macro Tools was not attempted to be installed. [08 / 10 / 11, 14:26:00] VS70pgui attempted to be installed. [08 / 10 / 11, 14:26:01] VS70pgui: [2] DepCheck indicates Microsoft Visual Studio 2010 Professional - ENU was not attempted to be installed. [08 / 10 / 11, 14:26:01
b396-3fc61e3e6b80 11 / 13 / 2011 00:08:31.87 w3wp.exe (0x0DB4) 0x0AB8 Excel Services Application Excel Calculation Services 8jg2 Medium ResourceManager.PerformCleanup: Memory Manager: CurrentSize = 536850432. 53fed7f1-b549-1a88-0000 9f02-ade97cfcf496 11 / 13 / 2011 00:08:34.05 w3wp.exe (0x0DB4) 0x0BEC Excel Services Application Excel Calculation Services 8jg2 Medium ResourceManager.PerformCleanup: Disk Manager: CurrentSize = 352934. 11c5f189-b549-1a88-0000 a19e-ce6cc85ad1b9 11 / 13 / 2011 00:08:36.88 w3wp.exe (0x0DB4) 0x0AB8 Excel Services Application Excel Calculation Services 8jg2 Medium ResourceManager.PerformCleanup: Memory Manager: CurrentSize = 536850432. 53fed7f1-b549-1a88-0000-000050f7b00c 11 / 13 / 2011 00:08:41.88 w3wp.exe (0x0DB4) 0x0AB8 Excel Services Application Excel Calculation Services 8jg2 Medium ResourceManager.PerformCleanup: Memory Manager: CurrentSize = 536850432. 53fed7f1-b549-1a88-0000 0000-000050f7b00b 11 / 13 / 2011 00:08:44.05 w3wp.exe (0x0DB4) 0x0BEC Excel Services Application Excel Calculation Services 8jg2 Medium ResourceManager.PerformCleanup: Disk Manager: CurrentSize = 352934. 11c5f189-b549-1a88-0000 OWSTIMER.EXE (0x0684) 0x22B4 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (Timer Job job-application-server) 2ebbf1fd-d609-4b40-883a-03d55a31c274 11 / 13 / 2011 00:08:46.50 OWSTIMER.EXE 883a-03d55a31c274 11 / 13 / 2011 00:08:46.88 w3wp.exe (0x0DB4) 0x0AB8 Excel Services Application Excel Calculation Services 8jg2 Medium ResourceManager.PerformCleanup: Memory Manager: CurrentSize = 536850432. 53fed7f1-b549-1a88-0000 00:08:47.60 OWSTIMER.EXE (0x0684) 0x22B4 SharePoint Server Search Administration dl2a Medium Search application 'Application de service de recherche': Verify correctness of incremental crawl schedule on content source 'Sites
to be a .net developer • To test a Web Service you must create a windows application or web application to consume this service? It is True / False? FALSE How many classes can a single lifetime? Give an example. Answer1 static int Myint–The life time is during the entire application. br> Answer2 The static modifier is used to declare a static member, which belongs Microsoft.Jet.OLEDB.4.0;”+ _ “Data Source = C: \ Documents and Settings \ User \ My Documents \ Visual Studio Projects \ 1209 \ db1.mdb”+ _ “User ID = Admin;”+ _ “Password = ;”); Dim cmd As New OleDbCommand server as var_name int How do you separate business logic while creating an ASP.NET application? There are two level of asp.net debugging 1. Page level debugging For this we WebForm1.aspx.vb” Inherits = ”WebApplication2.WebForm1?> 2. You can enable the debugging in the application level for this Edit the following trace value in web.config file Enable trace enabled true. If there is a calendar control to be included in each page of your application, and and we do not intend to use the Microsoft-provided calendar control, how do
tell me how to add the Framework Setup and Report Viewer Setup along with the Application Setup. The purpose is everything should be installed on a single click. Thanking you Regards KRISHNADAS Untitled document Step 1: In visual Studio > > File > > new > > Project > > Other Project Types > > Setup and deployment > > Setup Project . Step 2 : Add the exe(s) and other files in Application Folder of SetupProject Step 3: Now in Solution Explorer Right Click your Project > > Properties Click option it is giving 3 options download pre-requisites from the component vendors website do. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . application folder download from the link we can not give download pre-requisites from the component KRISHNADAS if you select download option then it will download from the website when running application Select Download Prerequesites from Same location as my setup will be better choice will copy setup and look at output you will understand every thing ;-) hi, When we develop an application using any platform, we should prepare our application to be deployed properly. Especially for .NET , the prerequisites of .NET Framework are a must