Solved

How to access help files

Posted on 2004-09-29
6
170 Views
Last Modified: 2010-04-23
I am new to VB.NET 2002.  I have a question about using CHM "Help Files" and I haven't found information anywhere on the Internet that I have understood or that has helped me so far. When my program is installed the packager will ask the user what directory they want the software installed to. Default will be C:\Program Files\Lexco and the support files including the help file will be in C:\Program Files\Lexco\Support Files but if the user changes it to another directory then I would need my program to be able to find the Support Files directory for the Help.chm file so it could be used.  

My question: In my code how to I account for this when pointing to my support files such as the Help.chm?  A simple commented working example using the F1 Help Provider would be great.

Thanks,

0
Comment
Question by:teamdad
  • 3
  • 3
6 Comments
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 12186197
You can use Application.StartupPath to know from which folder your application is running.

Me.helpProvider1.HelpNamespace = Application.StartupPath & "\YourFile.chm"
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 12186202
or
Me.helpProvider1.HelpNamespace = Application.StartupPath & "\support\help.chm"
0
 

Author Comment

by:teamdad
ID: 12186260
emoreau,

Thank you for the quick reply, I have a F1 help provider on my form and have used your code but in the debug mode it don't bring up the help file.  I have watched for spelling errors and tried the Help.chm in the bin folder since it would be the application startup path and it still won't pull up. Is it something i'm doing?



I also have a post for assistance with embedded fonts if you are interested.
http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/VB_DOT_NET/Q_21150219.html
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 69

Accepted Solution

by:
Éric Moreau earned 150 total points
ID: 12186326
have you set the ShowHelp to true for all controls?
0
 

Author Comment

by:teamdad
ID: 12186391
Yes. For the MenuItem and the form.
0
 

Author Comment

by:teamdad
ID: 12195829
I had to make some adjustments to the code you gave me but now it works great!!

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim hPath As String = Application.StartupPath()
        Me.HelpProvider1.HelpNamespace = hPath & "\Support Files\Help.chm"
    End Sub
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now