Displaying help in a control

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
 
H

Hans-Jürgen Philippi

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
 
H

Hans-Jürgen Philippi

Oops, what i forgot:

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

Greetings,
Hans
 
I

Ignacio Machin ( .NET/ C# MVP )

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top