Solved

How to open an Html.file in VB.net

Posted on 2004-03-25
5
607 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Query Help Top 1 and Distinct? 6 47
Vb.net threads keep increasing 2 48
Please explain purpose of GZIP 4 56
VB.net/VSTO Excel Add-in 2 14
Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

685 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