473,385 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

HelpProvider

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
Nov 21 '05 #1
2 6091
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

"Yoshitha" <gu**********@rediffmail.com> wrote in message
news:ey**************@tk2msftngp13.phx.gbl...
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

Nov 21 '05 #2
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
***************************************
Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Rob Oeffner | last post by:
Hi, This is not a solution in search of a problem but I think I found if not a bug then at least a serious deficiency in the HelpProvider class. I use it on a form in VB where I have assigned its...
0
by: Yoshitha | last post by:
Hi, I want help 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...
0
by: trialproduct2004 | last post by:
Hi all I am having application with is using class helpprovider. This class is used for opening help file. I have chm file which i am displaying using helpprovider class. My problem is when i...
2
by: Dennis C. Drumm | last post by:
How do we set the HelpNamespace property of the HelpProvider class, so that when the application is deployed the path will be correct, since the path cannot be known for sure ahead of time? This is...
2
by: Marcel Brekelmans | last post by:
Hello, So far I have my .CHM file working with my application through a HelpProvider. But, I would like to display certain locations on a page immediately. For instance, I have a page...
0
by: Paul Remblance | last post by:
Example: Private Sub F1Requested(ByVal sender As Object, ByVal hlpevent As System.Windows.Forms.HelpEventArgs) Handles txtProdCode.HelpRequested If sender.GetType Is GetType(TextBox) Then Dim...
0
by: PromisedOyster | last post by:
I am experiencing some difficulties using the HelpProvider class. If I have the following code in the constructor of my form then the help string "Help Text" gets shown when I click the question...
2
by: lgbjr | last post by:
hi All, I'm building the help system for a VB.Net 2005 winform application (some tooltips and a HelpProvider, etc.). For the HelpProvider, there are controls that I would like to have "What's...
2
by: aasif | last post by:
Hello, need some help with "HelpProvider" in vb2005. I have made a .chm file, and have a topic in there with TopicID called "Login". I have tried for sometime to get (on f1) to launch the .chm file...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.