Solved

How to open an Html.file in VB.net

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

746 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

10 Experts available now in Live!

Get 1:1 Help Now