Solved

How to open an Html.file in VB.net

Posted on 2004-03-25
5
589 Views
Last Modified: 2008-02-01
I want to open a helpfile wirtten in html which is located the same folder as VB.net source code

What command should I use?

0
Comment
Question by:davidlam8888
5 Comments
 
LVL 10

Expert Comment

by:GoodJun
ID: 10681909
shell(iexplore.exe "file.html")
0
 

Author Comment

by:davidlam8888
ID: 10682148
It does not work, file not found!
 Shell("iexplore" & "\help.htm")
0
 
LVL 10

Expert Comment

by:GoodJun
ID: 10682548
give the full path to iexplore.exe and help.html
0
 
LVL 6

Expert Comment

by:KarunSK
ID: 10682812
And don't forget a space between iexplore.exe and file.html !
0
 
LVL 28

Accepted Solution

by:
iboutchkine earned 500 total points
ID: 10683355
' The first argument is a Control object that works as the
' parent for the help dialog box.
Help.ShowHelpIndex(Me, "c:\myhelpfile.chm")

(You can also use a URL that uses forward slashes as separators.) The other method, ShowHelp,
is overloaded to provide access to different portions of the help document:

' Display the contents of the help file.
Help.ShowHelp(Me, "c:\myhelpfile.chm")
' Display the index page of the help file.
Help.ShowHelp(Me, "c:\myhelpfile.chm", HelpNavigator.Index)
' Display the search page of the help file.
Help.ShowHelp(Me, "c:\myhelpfile.chm", HelpNavigator.Find)
' Display the help page for a specific keyword.
Help.ShowHelp(Me, "c:\myhelpfile.chm", "mykeyword")
' Display the help page for the specific topic #123.
Help.ShowHel (Me, "c:\myhelpfile.chm", HelpNavigator.Topic, 123)
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

810 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