Click here to Skip to main content
12,394,573 members (75,131 online)
Click here to Skip to main content
Articles » Languages » C# » Applications » Downloads

Stats

194.7K views
2.4K downloads
272 bookmarked
Posted

Context Help Made Easy

, 2 Feb 2007 CPOL
This article introduces a new way of instrumenting your code that enables help authors associate help topics with the application’s visual contexts at any time - even post-compilation – and to do so using the application’s user interface without the involvement of the developer.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace ContextHelpMadeEasy
{
    public partial class FormEx : Form, IContextHelp
    {
        public FormEx()
        {
            InitializeComponent();
        }
        public virtual string ContextHelpID { get { return this.GetType().FullName; } }

        protected override void OnHelpButtonClicked(CancelEventArgs e)
        {
            HelpUtility.ProcessHelpRequest(this);
            base.OnHelpButtonClicked(e);
            e.Cancel = true;
        }

    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Tom Clement
Product Manager
United States United States
I've been programming in C, C++, Visual Basic and C# for almost 30 years. I've worked at Sierra Systems, ViewStar, Mosaix, Lucent, Avaya, Avinon, Apptero, Serena and now Guidewire Software in various roles over my career.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160721.1 | Last Updated 2 Feb 2007
Article Copyright 2007 by Tom Clement
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid