HelpProvider

Y

Yoshitha

I want help from u regarding providing information about form and controls
which are presented on the form.
when ever user presses f1 if the form has focus then it has to provide
information about the form( eg.what it does etc)
When the control has focus , if the user presses f1 key then it has to
provide info regatding that control i.e what the control is meant for.
Like that i want to provide help information to the end user to make him
know how to use the application.

For eg in my application there is one form and it is having 2 text box
controls and i've placed HelpProvider control.

For form i 've set the properties like this

show help on helpProvider1 = true
HelpString on helpProvider1= Drugs Entry Form

For First textbox i set the following properties

show help on helpProvider1 = true
HelpString on helpProvider1= Enter Drug name

For Second textbox i set the following properties

show help on helpProvider1 = true
HelpString on helpProvider1= Enter Dosage level

After running the application so the form is having the focus and when i
press f1 it is displaying the message dugs entry form

, when select 1st textbox and press f1 then it is displaying Enter Drug
name and
when select 2nd textbox and press f1 then it is displaying enter dosage
level.

Again when am selecting form and pressing f1 then it is displaying the
message Enter dosage level.( it is displaying the message of the control
which i 've selected previously before selecting the form.


So instaed of providing message using helpstring i've used one htmel page.
In this i 've written some text. and i 've included this file into
application using the property
HelpNamespace of HelpProvider control.

When am running the application and pressing f1 key then it is displaying
the information into Browser i dont want to display the info into browser
but want to display in seperate document .
Plz tell me how to do this one.
Thanx in advance
Yoshitha
 
B

Bernie Yaeger

Hi Yoshitha,

Here's how a help system inside .net works: add a helpprovider control which
adds numerous properties to all of the controls on a given form; you simply
set the .htm or the .chm you wish to go to with

HelpProvider1.HelpNamespace = "f:\myhelp\tpcal.htm"

Then you set the control's help navigate on <controlname> to 'find' etc to
open either the file or an index of the file or search of the file or table
of contents, etc; of course, if it's a simple .htm which may link to other
..htm's, just use 'find'; if you make navigate on 'keywordindex' and enter
the keyword (without quotes) in the 'help keyword on' property, the .chm
will automatically go directly to that keyword in the index.

Also, if you set

Me.HelpProvider1.HelpNamespace = "f:\myhelp\tpcal_h.chm"

in the load event and then enter, say, 'inventory processing' (an index key)
in 'help keyword on' and set nagivate to keywordindex, it goes directly to
that page; the other approach simply opens an htm in the explorer window,
which isn't as good as doing this.

HTH,

Bernie Yaeger
 
U

Ulrich Kulle

Hello Yoshita,
I want help from u regarding providing information about form and controls
which are presented on the form.
when ever user presses f1 if the form has focus then it has to provide
information about the form( eg.what it does etc)
When the control has focus , if the user presses f1 key then it has to
provide info regatding that control i.e what the control is meant for.
Like that i want to provide help information to the end user to make him
know how to use the application.

For eg in my application there is one form and it is having 2 text box
controls and i've placed HelpProvider control.

For form i 've set the properties like this

show help on helpProvider1 = true
HelpString on helpProvider1= Drugs Entry Form

For First textbox i set the following properties

show help on helpProvider1 = true
HelpString on helpProvider1= Enter Drug name

For Second textbox i set the following properties

show help on helpProvider1 = true
HelpString on helpProvider1= Enter Dosage level

After running the application so the form is having the focus and when i
press f1 it is displaying the message dugs entry form

, when select 1st textbox and press f1 then it is displaying Enter Drug
name and
when select 2nd textbox and press f1 then it is displaying enter dosage
level.

Again when am selecting form and pressing f1 then it is displaying the
message Enter dosage level.( it is displaying the message of the control
which i 've selected previously before selecting the form.


So instaed of providing message using helpstring i've used one htmel page.
In this i 've written some text. and i 've included this file into
application using the property
HelpNamespace of HelpProvider control.

When am running the application and pressing f1 key then it is displaying
the information into Browser i dont want to display the info into browser
but want to display in seperate document .
Plz tell me how to do this one.

it is not quite clear for me what is meant with "seperate document". You only
can show a HTML topic in a browser window or a CHM file topic by HTMLHelp
viewer.

Have a look at my examples at:
http://www.help-info.de/en/Visual_Basic_net/vbnet.htm

HTH

Best regards
Ulrich Kulle
***************************************
http://www.help-info.de
***************************************
 

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