search
Japanese Chinese Nederlands Espanol Italiano Deutsch Francais Twitter Rss Feeds
MicrosoftArticlesForumsFAQs
C# .NET
VB.NET
Visual Studio .NET
ADO.NET
Xml / Xslt
VB 6.0
.NET CF
GDI+
LINQ
Deployment
Security
FoxPro
Silverlight / WPF
Entity Framework
RIA Services

Web ProgrammingArticlesForumsFAQs
JavaScript
ASP
ASP.NET
Web Services

Non-MicrosoftArticlesForumsFAQs
NHibernate
Perl
PHP
Ruby
Java
Linux / Unix
Apple
Open Source

DatabasesArticlesForumsFAQs
SQL Server
Access
Oracle
MySQL
Other Databases

OfficeArticlesForumsFAQs
Excel
Word
Powerpoint
Outlook
Publisher
Money

Operating SystemsArticlesForumsFAQs
Windows 7
Windows Server
Windows Vista
Windows XP
Windows Update
MAC
Linux / UNIX

Server PlatformsArticlesForumsFAQs
BizTalk
Site Server
Exhange Server
IIS

Graphic DesignArticlesForumsFAQs
Macromedia Flash
Adobe PhotoShop
Expression Blend
Expression Design
Expression Web

OtherArticlesForumsFAQs
Subversion / CVS
Ask Dr. Dotnetsky
Active Directory
Networking
Uninstall Virus
Job Openings
Product Reviews
Search Engines
Resumes

 

View Other C# .NET Posts   Ask New Question 
How to navigate to partiuclar page in help file in windows application?
Eswaran Radhakrishnan posted at Tuesday, November 18, 2008 5: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
Web star replied to Eswaran Radhakrishnan at Tuesday, November 18, 2008 5: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
Eswaran Radhakrishnan replied to Web star at Tuesday, November 18, 2008 7: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
C_A P replied to Eswaran Radhakrishnan at Wednesday, November 19, 2008 7:00 AM
http://www.softcoded.com/web_design/java_help_files.php
http://msdn.microsoft.com/en-us/library/ms951278.aspx