Displaying help in a control

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Philippe HALET

    Displaying help in a control

    Dear all,

    I have an application written in C#. The main form contains two areas:
    the first one for data input and results, the second one for
    informations. In this last area I would like to display the related help
    (contained in a CHM file) each time a control (in the first area) get
    the focus.

    How can I do that? Which type of control must I use?

    Thanks in advance,

    Philippe
  • Hans-Jürgen Philippi

    #2
    Re: Displaying help in a control

    Hi Philippe,

    the most simple thing I can think of:

    1. Place a short description text resp. CHM help URL in the 'Tag' property
    of every data entry control.
    2. Attach the MouseHover event of each data entry control to a single(!)
    event handler that takes the sender's tag info to open/display the correct
    help text.
    3. Et voilá! :-)


    Greetings,
    Hans


    "Philippe HALET" <p.halet@hdsi.b eschrieb im Newsbeitrag
    news:484cefbd$0 $688$5f6aeac3@n ews.scarlet.nl. ..
    Dear all,
    >
    I have an application written in C#. The main form contains two areas: the
    first one for data input and results, the second one for informations. In
    this last area I would like to display the related help (contained in a
    CHM file) each time a control (in the first area) get the focus.
    >
    How can I do that? Which type of control must I use?
    >
    Thanks in advance,
    >
    Philippe

    Comment

    • Hans-Jürgen Philippi

      #3
      Re: Displaying help in a control

      Oops, what i forgot:

      4. The WebBrowser control is able to display CHM content, just get the weird
      deep linking URL "mk:@MSIStore:. .." from the CHM itself (right click on
      desired page and look at 'Property')

      Greetings,
      Hans


      "Philippe HALET" <p.halet@hdsi.b eschrieb im Newsbeitrag
      news:484cefbd$0 $688$5f6aeac3@n ews.scarlet.nl. ..
      Dear all,
      >
      I have an application written in C#. The main form contains two areas: the
      first one for data input and results, the second one for informations. In
      this last area I would like to display the related help (contained in a
      CHM file) each time a control (in the first area) get the focus.
      >
      How can I do that? Which type of control must I use?
      >
      Thanks in advance,
      >
      Philippe

      Comment

      • Ignacio Machin ( .NET/ C# MVP )

        #4
        Re: Displaying help in a control

        On Jun 9, 4:56 am, Philippe HALET <p.ha...@hdsi.b ewrote:
        Dear all,
        >
        I have an application written in C#. The main form contains two areas:
        the first one for data input and results, the second one for
        informations. In this last area I would like to display the related help
          (contained in a CHM file) each time a control (in the first area) get
        the focus.
        >
        How can I do that? Which type of control must I use?
        >
        Thanks in advance,
        >
        Philippe
        Hi,

        You can use the mouse over event to detect the mouse movement. or even
        better, mouse enter/leave You need to know the ID (or url) of the
        control.
        You could have one method to handle all the requests, no need to have
        one per control

        Comment

        Working...