<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp%2FGUI_Windows_Form%2FHelp_System</id>
		<title>Csharp/C Sharp/GUI Windows Form/Help System - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp%2FGUI_Windows_Form%2FHelp_System"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/Help_System&amp;action=history"/>
		<updated>2026-04-29T15:04:13Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/Help_System&amp;diff=14&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/Help_System&amp;diff=14&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:18Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:31, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/Help_System&amp;diff=15&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/Help_System&amp;diff=15&amp;oldid=prev"/>
				<updated>2010-05-26T11:32:28Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Help icon==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
User Interfaces in C#: Windows Forms and Custom Controls&lt;br /&gt;
by Matthew MacDonald&lt;br /&gt;
Publisher: Apress&lt;br /&gt;
ISBN: 1590590457&lt;br /&gt;
*/&lt;br /&gt;
using System;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
namespace ExtenderProviderHost&lt;br /&gt;
{&lt;br /&gt;
  /// &amp;lt;summary&amp;gt;&lt;br /&gt;
  /// Summary description for HelpIconProviderHost.&lt;br /&gt;
  /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
  public class HelpIconProviderHost : System.Windows.Forms.Form&lt;br /&gt;
  {&lt;br /&gt;
    internal System.Windows.Forms.TextBox TextBox2;&lt;br /&gt;
    internal System.Windows.Forms.TextBox TextBox1;&lt;br /&gt;
    private ExtenderProviderControls.HelpIconProvider helpIconProvider1;&lt;br /&gt;
    private System.ruponentModel.IContainer components;&lt;br /&gt;
    public HelpIconProviderHost()&lt;br /&gt;
    {&lt;br /&gt;
      //&lt;br /&gt;
      // Required for Windows Form Designer support&lt;br /&gt;
      //&lt;br /&gt;
      InitializeComponent();&lt;br /&gt;
      //&lt;br /&gt;
      // TODO: Add any constructor code after InitializeComponent call&lt;br /&gt;
      //&lt;br /&gt;
    }&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// Clean up any resources being used.&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    protected override void Dispose( bool disposing )&lt;br /&gt;
    {&lt;br /&gt;
      if( disposing )&lt;br /&gt;
      {&lt;br /&gt;
        if(components != null)&lt;br /&gt;
        {&lt;br /&gt;
          components.Dispose();&lt;br /&gt;
        }&lt;br /&gt;
      }&lt;br /&gt;
      base.Dispose( disposing );&lt;br /&gt;
    }&lt;br /&gt;
    #region Windows Form Designer generated code&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// Required method for Designer support - do not modify&lt;br /&gt;
    /// the contents of this method with the code editor.&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    private void InitializeComponent()&lt;br /&gt;
    {&lt;br /&gt;
      this.ruponents = new System.ruponentModel.Container();&lt;br /&gt;
      this.TextBox2 = new System.Windows.Forms.TextBox();&lt;br /&gt;
      this.TextBox1 = new System.Windows.Forms.TextBox();&lt;br /&gt;
      this.helpIconProvider1 = new ExtenderProviderControls.HelpIconProvider(this.ruponents);&lt;br /&gt;
      this.SuspendLayout();&lt;br /&gt;
      // &lt;br /&gt;
      // TextBox2&lt;br /&gt;
      // &lt;br /&gt;
      this.TextBox2.Location = new System.Drawing.Point(24, 48);&lt;br /&gt;
      this.TextBox2.Name = &amp;quot;TextBox2&amp;quot;;&lt;br /&gt;
      this.TextBox2.Size = new System.Drawing.Size(148, 20);&lt;br /&gt;
      this.TextBox2.TabIndex = 3;&lt;br /&gt;
      this.TextBox2.Text = &amp;quot;&amp;quot;;&lt;br /&gt;
      // &lt;br /&gt;
      // TextBox1&lt;br /&gt;
      // &lt;br /&gt;
      this.TextBox1.Location = new System.Drawing.Point(24, 16);&lt;br /&gt;
      this.TextBox1.Name = &amp;quot;TextBox1&amp;quot;;&lt;br /&gt;
      this.TextBox1.Size = new System.Drawing.Size(104, 20);&lt;br /&gt;
      this.TextBox1.TabIndex = 2;&lt;br /&gt;
      this.TextBox1.Text = &amp;quot;&amp;quot;;&lt;br /&gt;
      // &lt;br /&gt;
      // helpIconProvider1&lt;br /&gt;
      // &lt;br /&gt;
      this.helpIconProvider1.HelpFile = null;&lt;br /&gt;
      // &lt;br /&gt;
      // HelpIconProviderHost&lt;br /&gt;
      // &lt;br /&gt;
      this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);&lt;br /&gt;
      this.ClientSize = new System.Drawing.Size(292, 150);&lt;br /&gt;
      this.Controls.AddRange(new System.Windows.Forms.Control[] {&lt;br /&gt;
                                      this.TextBox2,&lt;br /&gt;
                                      this.TextBox1});&lt;br /&gt;
      this.Name = &amp;quot;HelpIconProviderHost&amp;quot;;&lt;br /&gt;
      this.Text = &amp;quot;HelpIconProviderHost&amp;quot;;&lt;br /&gt;
      this.Load += new System.EventHandler(this.HelpIconProviderHost_Load);&lt;br /&gt;
      this.ResumeLayout(false);&lt;br /&gt;
    }&lt;br /&gt;
    #endregion&lt;br /&gt;
    private void HelpIconProviderHost_Load(object sender, System.EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
      helpIconProvider1.HelpFile = &amp;quot;myhelp.hlp&amp;quot;;&lt;br /&gt;
      helpIconProvider1.SetHelpID(TextBox1, &amp;quot;10001&amp;quot;);&lt;br /&gt;
      helpIconProvider1.SetHelpID(TextBox2, &amp;quot;10002&amp;quot;);&lt;br /&gt;
      helpIconProvider1.SetHelpID(TextBox1,&amp;quot;&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    static void Main() &lt;br /&gt;
    {&lt;br /&gt;
      Application.Run(new HelpIconProviderHost());&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
//=============================================================&lt;br /&gt;
//=============================================================&lt;br /&gt;
using System;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
namespace ExtenderProviderControls&lt;br /&gt;
{&lt;br /&gt;
[ProvideProperty(&amp;quot;HelpID&amp;quot;, typeof(string))]&lt;br /&gt;
public class HelpIconProvider : Component, IExtenderProvider&lt;br /&gt;
{&lt;br /&gt;
  private System.ruponentModel.Container components = null;&lt;br /&gt;
  public HelpIconProvider(System.ruponentModel.IContainer container)&lt;br /&gt;
  {&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// Required for Windows.Forms Class Composition Designer support&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    container.Add(this);&lt;br /&gt;
    InitializeComponent();&lt;br /&gt;
    //&lt;br /&gt;
    // TODO: Add any constructor code after InitializeComponent call&lt;br /&gt;
    //&lt;br /&gt;
  }&lt;br /&gt;
  public HelpIconProvider()&lt;br /&gt;
  {&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// Required for Windows.Forms Class Composition Designer support&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    InitializeComponent();&lt;br /&gt;
    //&lt;br /&gt;
    // TODO: Add any constructor code after InitializeComponent call&lt;br /&gt;
    //&lt;br /&gt;
  }&lt;br /&gt;
    #region Component Designer generated code&lt;br /&gt;
  /// &amp;lt;summary&amp;gt;&lt;br /&gt;
  /// Required method for Designer support - do not modify&lt;br /&gt;
  /// the contents of this method with the code editor.&lt;br /&gt;
  /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
  private void InitializeComponent()&lt;br /&gt;
  {&lt;br /&gt;
    System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(HelpIconProvider));&lt;br /&gt;
    this.pictureBox1 = new System.Windows.Forms.PictureBox();&lt;br /&gt;
    // &lt;br /&gt;
    // pictureBox1&lt;br /&gt;
    // &lt;br /&gt;
    this.pictureBox1.Image = ((System.Drawing.Bitmap)(resources.GetObject(&amp;quot;pictureBox1.Image&amp;quot;)));&lt;br /&gt;
    this.pictureBox1.Location = new System.Drawing.Point(17, 17);&lt;br /&gt;
    this.pictureBox1.Name = &amp;quot;pictureBox1&amp;quot;;&lt;br /&gt;
    this.pictureBox1.TabIndex = 0;&lt;br /&gt;
    this.pictureBox1.TabStop = false;&lt;br /&gt;
  }&lt;br /&gt;
    #endregion&lt;br /&gt;
&lt;br /&gt;
    private Hashtable contextID = new Hashtable();&lt;br /&gt;
  private Hashtable pictures = new Hashtable();&lt;br /&gt;
  private System.Windows.Forms.PictureBox pictureBox1;&lt;br /&gt;
    private string helpFile;&lt;br /&gt;
    public bool CanExtend(object extendee)&lt;br /&gt;
    {&lt;br /&gt;
        if (extendee.GetType() == typeof(Control))&lt;br /&gt;
        {&lt;br /&gt;
            // Ensure the control is attached to a form.&lt;br /&gt;
            if (((Control)extendee).FindForm() == null)&lt;br /&gt;
            {&lt;br /&gt;
                return false;&lt;br /&gt;
            }&lt;br /&gt;
            else&lt;br /&gt;
            {&lt;br /&gt;
                return true;&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
        else&lt;br /&gt;
        {&lt;br /&gt;
            return false;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    public string HelpFile&lt;br /&gt;
  {&lt;br /&gt;
    get&lt;br /&gt;
        {&lt;br /&gt;
            return helpFile;&lt;br /&gt;
        }&lt;br /&gt;
        set&lt;br /&gt;
        {&lt;br /&gt;
            helpFile = value;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    public void SetHelpID(object extendee, string value)&lt;br /&gt;
    {&lt;br /&gt;
        Control ctrl = (Control)extendee;&lt;br /&gt;
        // Specifying an empty value removes the extension.&lt;br /&gt;
        if (value == &amp;quot;&amp;quot;)&lt;br /&gt;
        {&lt;br /&gt;
            contextID.Remove(extendee);&lt;br /&gt;
      // Remove the picture.&lt;br /&gt;
      PictureBox pic = (PictureBox)pictures[extendee];&lt;br /&gt;
      pic.DoubleClick -= new EventHandler(PicDoubleClick);&lt;br /&gt;
      pic.Parent.Controls.Remove(pic);&lt;br /&gt;
      pictures.Remove(extendee);&lt;br /&gt;
        }&lt;br /&gt;
        else&lt;br /&gt;
        {&lt;br /&gt;
            contextID[extendee] = value;&lt;br /&gt;
            // Create new icon.&lt;br /&gt;
            PictureBox pic = new PictureBox();&lt;br /&gt;
            pic.Image = pictureBox1.Image;&lt;br /&gt;
            &lt;br /&gt;
            // Store a reference to the related control in the PictureBox.&lt;br /&gt;
            pic.Tag = extendee;&lt;br /&gt;
            pic.Size = new Size(16, 16);&lt;br /&gt;
            pic.Location = new Point(ctrl.Right + 10, ctrl.Top);&lt;br /&gt;
            ctrl.Parent.Controls.Add(pic);&lt;br /&gt;
            // Register for DoubleClick event.&lt;br /&gt;
            pic.DoubleClick += new EventHandler(PicDoubleClick);&lt;br /&gt;
      // Store a reference to the help icon so we can remove it later.&lt;br /&gt;
      pictures[extendee] = pic;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    public string GetHelpID(object extendee)&lt;br /&gt;
    {&lt;br /&gt;
        if (contextID[extendee] != null)&lt;br /&gt;
        {&lt;br /&gt;
            return contextID[extendee].ToString();&lt;br /&gt;
        }&lt;br /&gt;
        else&lt;br /&gt;
        {&lt;br /&gt;
            return String.Empty;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    public void PicDoubleClick(object sender, EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
        // Invoke help for control.&lt;br /&gt;
        Control ctrlRelated = (Control)((Control)sender).Tag;&lt;br /&gt;
    // Debug message.&lt;br /&gt;
    MessageBox.Show(&amp;quot;Help triggered.&amp;quot;);&lt;br /&gt;
        Help.ShowHelp(ctrlRelated, helpFile, HelpNavigator.Topic, &lt;br /&gt;
          contextID[ctrlRelated].ToString());&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;A href=&amp;quot;http://www.nfex.ru/Code/CSharpDownload/HelpIconProviderHost.zip&amp;quot;&amp;gt;HelpIconProviderHost.zip( 72 k)&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Help Test==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
User Interfaces in C#: Windows Forms and Custom Controls&lt;br /&gt;
by Matthew MacDonald&lt;br /&gt;
Publisher: Apress&lt;br /&gt;
ISBN: 1590590457&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
using System;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
using System.Data;&lt;br /&gt;
namespace HelpTest&lt;br /&gt;
{&lt;br /&gt;
  /// &amp;lt;summary&amp;gt;&lt;br /&gt;
  /// Summary description for HelpTest.&lt;br /&gt;
  /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
  public class HelpTest : System.Windows.Forms.Form&lt;br /&gt;
  {&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// Required designer variable.&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    private System.ruponentModel.Container components = null;&lt;br /&gt;
    public HelpTest()&lt;br /&gt;
    {&lt;br /&gt;
      //&lt;br /&gt;
      // Required for Windows Form Designer support&lt;br /&gt;
      //&lt;br /&gt;
      InitializeComponent();&lt;br /&gt;
      //&lt;br /&gt;
      // TODO: Add any constructor code after InitializeComponent call&lt;br /&gt;
      //&lt;br /&gt;
    }&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// Clean up any resources being used.&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    protected override void Dispose( bool disposing )&lt;br /&gt;
    {&lt;br /&gt;
      if( disposing )&lt;br /&gt;
      {&lt;br /&gt;
        if (components != null) &lt;br /&gt;
        {&lt;br /&gt;
          components.Dispose();&lt;br /&gt;
        }&lt;br /&gt;
      }&lt;br /&gt;
      base.Dispose( disposing );&lt;br /&gt;
    }&lt;br /&gt;
    #region Windows Form Designer generated code&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// Required method for Designer support - do not modify&lt;br /&gt;
    /// the contents of this method with the code editor.&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    private void InitializeComponent()&lt;br /&gt;
    {&lt;br /&gt;
      // &lt;br /&gt;
      // HelpTest&lt;br /&gt;
      // &lt;br /&gt;
      this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);&lt;br /&gt;
      this.ClientSize = new System.Drawing.Size(528, 434);&lt;br /&gt;
      this.IsMdiContainer = true;&lt;br /&gt;
      this.Name = &amp;quot;HelpTest&amp;quot;;&lt;br /&gt;
      this.Text = &amp;quot;HelpTest&amp;quot;;&lt;br /&gt;
      this.Load += new System.EventHandler(this.HelpTest_Load);&lt;br /&gt;
    }&lt;br /&gt;
    #endregion&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// The main entry point for the application.&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    [STAThread]&lt;br /&gt;
    static void Main() &lt;br /&gt;
    {&lt;br /&gt;
      Application.Run(new HelpTest());&lt;br /&gt;
    }&lt;br /&gt;
    private void HelpTest_Load(object sender, System.EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
      FormBased frm1 = new FormBased();&lt;br /&gt;
      FrameBased frm2 = new FrameBased();&lt;br /&gt;
      ControlBased frm3 = new ControlBased();&lt;br /&gt;
      &lt;br /&gt;
      frm1.MdiParent = this;&lt;br /&gt;
      frm2.MdiParent = this;&lt;br /&gt;
      frm3.MdiParent = this;&lt;br /&gt;
      &lt;br /&gt;
      frm1.Show();&lt;br /&gt;
      frm2.Show();&lt;br /&gt;
      frm3.Show();&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
//===============================================================&lt;br /&gt;
//===============================================================&lt;br /&gt;
using System;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
namespace HelpTest&lt;br /&gt;
{&lt;br /&gt;
  /// &amp;lt;summary&amp;gt;&lt;br /&gt;
  /// Summary description for ControlBased.&lt;br /&gt;
  /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
  public class ControlBased : System.Windows.Forms.Form&lt;br /&gt;
  {&lt;br /&gt;
    internal System.Windows.Forms.TextBox TextBox1;&lt;br /&gt;
    internal System.Windows.Forms.ListBox ListBox1;&lt;br /&gt;
    internal System.Windows.Forms.Label label1;&lt;br /&gt;
    internal System.Windows.Forms.HelpProvider HelpProvider1;&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// Required designer variable.&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    private System.ruponentModel.Container components = null;&lt;br /&gt;
    public ControlBased()&lt;br /&gt;
    {&lt;br /&gt;
      //&lt;br /&gt;
      // Required for Windows Form Designer support&lt;br /&gt;
      //&lt;br /&gt;
      InitializeComponent();&lt;br /&gt;
      //&lt;br /&gt;
      // TODO: Add any constructor code after InitializeComponent call&lt;br /&gt;
      //&lt;br /&gt;
    }&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// Clean up any resources being used.&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    protected override void Dispose( bool disposing )&lt;br /&gt;
    {&lt;br /&gt;
      if( disposing )&lt;br /&gt;
      {&lt;br /&gt;
        if(components != null)&lt;br /&gt;
        {&lt;br /&gt;
          components.Dispose();&lt;br /&gt;
        }&lt;br /&gt;
      }&lt;br /&gt;
      base.Dispose( disposing );&lt;br /&gt;
    }&lt;br /&gt;
    #region Windows Form Designer generated code&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// Required method for Designer support - do not modify&lt;br /&gt;
    /// the contents of this method with the code editor.&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    private void InitializeComponent()&lt;br /&gt;
    {&lt;br /&gt;
      this.TextBox1 = new System.Windows.Forms.TextBox();&lt;br /&gt;
      this.ListBox1 = new System.Windows.Forms.ListBox();&lt;br /&gt;
      this.label1 = new System.Windows.Forms.Label();&lt;br /&gt;
      this.HelpProvider1 = new System.Windows.Forms.HelpProvider();&lt;br /&gt;
      this.SuspendLayout();&lt;br /&gt;
      // &lt;br /&gt;
      // TextBox1&lt;br /&gt;
      // &lt;br /&gt;
      this.TextBox1.Location = new System.Drawing.Point(30, 135);&lt;br /&gt;
      this.TextBox1.Name = &amp;quot;TextBox1&amp;quot;;&lt;br /&gt;
      this.TextBox1.Size = new System.Drawing.Size(208, 20);&lt;br /&gt;
      this.TextBox1.TabIndex = 11;&lt;br /&gt;
      this.TextBox1.Text = &amp;quot;TextBox1&amp;quot;;&lt;br /&gt;
      // &lt;br /&gt;
      // ListBox1&lt;br /&gt;
      // &lt;br /&gt;
      this.ListBox1.Location = new System.Drawing.Point(26, 19);&lt;br /&gt;
      this.ListBox1.Name = &amp;quot;ListBox1&amp;quot;;&lt;br /&gt;
      this.ListBox1.Size = new System.Drawing.Size(112, 95);&lt;br /&gt;
      this.ListBox1.TabIndex = 10;&lt;br /&gt;
      // &lt;br /&gt;
      // label1&lt;br /&gt;
      // &lt;br /&gt;
      this.label1.Font = new System.Drawing.Font(&amp;quot;Microsoft Sans Serif&amp;quot;, 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));&lt;br /&gt;
      this.label1.Location = new System.Drawing.Point(30, 179);&lt;br /&gt;
      this.label1.Name = &amp;quot;label1&amp;quot;;&lt;br /&gt;
      this.label1.Size = new System.Drawing.Size(236, 68);&lt;br /&gt;
      this.label1.TabIndex = 9;&lt;br /&gt;
      this.label1.Text = &amp;quot;Select a control and press F1 here for a control-based help topic.&amp;quot;;&lt;br /&gt;
      // &lt;br /&gt;
      // ControlBased&lt;br /&gt;
      // &lt;br /&gt;
      this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);&lt;br /&gt;
      this.ClientSize = new System.Drawing.Size(292, 266);&lt;br /&gt;
      this.Controls.AddRange(new System.Windows.Forms.Control[] {&lt;br /&gt;
                                      this.TextBox1,&lt;br /&gt;
                                      this.ListBox1,&lt;br /&gt;
                                      this.label1});&lt;br /&gt;
      this.Name = &amp;quot;ControlBased&amp;quot;;&lt;br /&gt;
      this.Text = &amp;quot;ControlBased&amp;quot;;&lt;br /&gt;
      this.Load += new System.EventHandler(this.ControlBased_Load);&lt;br /&gt;
      this.ResumeLayout(false);&lt;br /&gt;
    }&lt;br /&gt;
    #endregion&lt;br /&gt;
    private void ControlBased_Load(object sender, System.EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
      HelpProvider1.HelpNamespace = &amp;quot;sample.chm&amp;quot;;&lt;br /&gt;
      HelpProvider1.SetHelpKeyword(TextBox1, &amp;quot;1007.html&amp;quot;);&lt;br /&gt;
      HelpProvider1.SetHelpNavigator(TextBox1, HelpNavigator.Topic);&lt;br /&gt;
      HelpProvider1.SetHelpKeyword(ListBox1, &amp;quot;1006.html&amp;quot;);&lt;br /&gt;
      HelpProvider1.SetHelpNavigator(ListBox1, HelpNavigator.Topic);&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;A href=&amp;quot;http://www.nfex.ru/Code/CSharpDownload/HelpTest.zip&amp;quot;&amp;gt;HelpTest.zip( 58 k)&amp;lt;/a&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>