Displaying help in a control

  • Thread starter Thread starter Philippe HALET
  • Start date Start date
P

Philippe HALET

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 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
 
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
 
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
 
Back
Top