Welcome55
    Working with Images
       Adding an Image
       Image Properties
       Adding Hotspots to an Image
    Uploading an Image
    Contact us
 Basic Functions
    Projects
       Creating a New Project
       Copying a Project
       Backing up Your Project
       Uploading a Project
       Setting Project Properties
       Manage Projects Form Password
       Project Templates
    aaa
    ccc xc
       My Section
          Windows Application Help Button
          Windows Form Help Button
          لرلاالا
          Welcome
          Widget Master Pro
          Widget Master Lite
          اذلاال
          Windows Field Help Button
          Windows F1 Application Help
          Windows F1 Form Help
          Windows F1 Field Help
       Web Applications
          Web Application Help Button
          Web Form Help Button
          Web Field Help Button
          Web F1 Application Help
          Web F1 Form Help
          Web F1 Field Help
          Popups
    cccx
       Applying Skins
       Customizing an Existing Skin
       Creating a New Skin
    Table of Contents
       Adding a Page
       Adding an External File
       Adding a Website or Webpage
       Embedding another Project
       Renaming a Page
       Deleting a Page
       Page Properties
       Dragging & Dropping Pages
       Cutting and Pasting Pages
       Customizing Page Icons
    Working with Tables
       Adding a Table
       Table Properties
       Cell Properties
    Keywords and Index
       Display Keywords in Edit Mode
       Display Index in Live Mode
    Links
       Adding Page Links
       Adding Internet Links
       Adding Email Links
       Adding Document Links
       Removing a Link
       How to Get Support
       Getting Started
          What is a Static Help System?
          What is a Dynamic Help System?
          What is a PDF Manual?
          End-User License Agreement
          How to Order
    Publishing
       Publishing a Static Help System
       Uploading to your Website
       Legacy Help System
       Publishing a Dynamic Help System
       Publishing a PDF Manual
 Advanced Functions
    Movies & Animations
       Adding a Flash Animation
       Adding a Media Animation
    Users
       Project Login
       Adding a Project Username
       Editing a Project Username
       Deleting a Project Username
    Security Groups
       Adding a Security Group
       Editing a Security Group
       Deleting a Security group
    Variables
       User Defined Variables
       System Variables
          Child Page 1
          Child Page 2
    Page Templates
       Customizing a Page Template
       Creating a Page Template
       Customizing the PDF Template
    Styles
       Page Styles
       Applying Styles
       Treeview Styles
    Reports
       Pending Reader Comments Report
       Page Status Report
    Conditional Content
       Conditional Pages
       Conditional Text
 Toolbar Reference
    System Toolbar
    Contents Toolbar
    Function Toolbar
    Skin Editor Toolbar
       Editor Toolbar
    Variable Editor Toolbar
    Page Template Editor Toolbar
 FAQ
    General Questions
    Installation Questions
  
 
     
Home > Basic Functions > ccc xc > My Section > Windows F1 Application Help

Windows F1 Application Help

You can add context sensitive help to your Windows application so that when a user presses the F1 key, the help system is displayed. Follow the steps below to add F1 context sensitivity to your Visual Studio 2003/2005 Windows application.

1. Open your Visual Studio Windows application.


2. Set the 'KeyPreview' property for the form to 'True'

3. Double click the form to open the code window.



4. Select 'KeyDown' from the 'Events' list

5. Add the following code to the "Sub Form2_Keydown" event:

Open a Dynamic Help System
Private Sub Form2_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
    If e.KeyCode = 112 Then
        Help.ShowHelp(Me, "http://www.domain.com/HelpConsole 2008 Help")
    End If
End Sub


Open a Static Help System
Private Sub Form2_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
    If e.KeyCode = 112 Then
        Help.ShowHelp(Me, "help\default.htm")
    End If
End Sub
* the url above assumes that the help system is in a sub folder named 'help'


ShowHelp Syntax:    Help.ShowHelp(Parent, URL)
Parent - Reference to the current form
URL - The url of the help system



6. Press F5 to run the application. Press F1 to open the help system.




See also

  
HelpConsole 2008 - Enterprise Edition

Copyright © 2004 - 2008 Extreme Ease Software Inc. All Rights Reserved.