Click here to Skip to main content
15,884,298 members
Articles / Desktop Programming / Windows Forms

Context Help Made Easy

Rate me:
Please Sign up or sign in to vote.
4.93/5 (53 votes)
2 Feb 2007CPOL10 min read 267K   2.7K   274  
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.
namespace ContextHelpMadeEasy
{
    partial class SettingsConfiguration
    {
        /// <summary> 
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary> 
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Component Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.lblConfigName = new System.Windows.Forms.Label();
            this.rbChoice1 = new System.Windows.Forms.RadioButton();
            this.rbChoice2 = new System.Windows.Forms.RadioButton();
            this.txtConfigName = new System.Windows.Forms.TextBox();
            this.txtDescription = new System.Windows.Forms.TextBox();
            this.lblDescription = new System.Windows.Forms.Label();
            this.SuspendLayout();
            // 
            // lblConfigName
            // 
            this.lblConfigName.AutoSize = true;
            this.lblConfigName.Location = new System.Drawing.Point(16, 21);
            this.lblConfigName.Name = "lblConfigName";
            this.lblConfigName.Size = new System.Drawing.Size(100, 13);
            this.lblConfigName.TabIndex = 0;
            this.lblConfigName.Text = "Configuration Name";
            // 
            // rbChoice1
            // 
            this.rbChoice1.AutoSize = true;
            this.rbChoice1.Location = new System.Drawing.Point(19, 55);
            this.rbChoice1.Name = "rbChoice1";
            this.rbChoice1.Size = new System.Drawing.Size(67, 17);
            this.rbChoice1.TabIndex = 1;
            this.rbChoice1.TabStop = true;
            this.rbChoice1.Text = "Choice 1";
            this.rbChoice1.UseVisualStyleBackColor = true;
            // 
            // rbChoice2
            // 
            this.rbChoice2.AutoSize = true;
            this.rbChoice2.Location = new System.Drawing.Point(19, 78);
            this.rbChoice2.Name = "rbChoice2";
            this.rbChoice2.Size = new System.Drawing.Size(67, 17);
            this.rbChoice2.TabIndex = 2;
            this.rbChoice2.TabStop = true;
            this.rbChoice2.Text = "Choice 2";
            this.rbChoice2.UseVisualStyleBackColor = true;
            // 
            // txtConfigName
            // 
            this.txtConfigName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtConfigName.Location = new System.Drawing.Point(119, 14);
            this.txtConfigName.Name = "txtConfigName";
            this.txtConfigName.Size = new System.Drawing.Size(241, 20);
            this.txtConfigName.TabIndex = 3;
            // 
            // txtDescription
            // 
            this.txtDescription.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtDescription.Location = new System.Drawing.Point(19, 141);
            this.txtDescription.Multiline = true;
            this.txtDescription.Name = "txtDescription";
            this.txtDescription.Size = new System.Drawing.Size(341, 106);
            this.txtDescription.TabIndex = 4;
            // 
            // lblDescription
            // 
            this.lblDescription.AutoSize = true;
            this.lblDescription.Location = new System.Drawing.Point(19, 122);
            this.lblDescription.Name = "lblDescription";
            this.lblDescription.Size = new System.Drawing.Size(63, 13);
            this.lblDescription.TabIndex = 5;
            this.lblDescription.Text = "Description:";
            // 
            // SettingsConfiguration
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Controls.Add(this.lblDescription);
            this.Controls.Add(this.txtDescription);
            this.Controls.Add(this.txtConfigName);
            this.Controls.Add(this.rbChoice2);
            this.Controls.Add(this.rbChoice1);
            this.Controls.Add(this.lblConfigName);
            this.Name = "SettingsConfiguration";
            this.Size = new System.Drawing.Size(379, 262);
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.Label lblConfigName;
        private System.Windows.Forms.RadioButton rbChoice1;
        private System.Windows.Forms.RadioButton rbChoice2;
        private System.Windows.Forms.TextBox txtConfigName;
        private System.Windows.Forms.TextBox txtDescription;
        private System.Windows.Forms.Label lblDescription;
    }
}

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)


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

Comments and Discussions