Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 668
  • Last Modified:

How to open an Html.file in VB.net

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
davidlam8888
Asked:
davidlam8888
1 Solution
 
GoodJunCommented:
shell(iexplore.exe "file.html")
0
 
davidlam8888Author Commented:
It does not work, file not found!
 Shell("iexplore" & "\help.htm")
0
 
GoodJunCommented:
give the full path to iexplore.exe and help.html
0
 
KarunSKCommented:
And don't forget a space between iexplore.exe and file.html !
0
 
iboutchkineCommented:
' 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

Microsoft Certification Exam 74-409

VeeamĀ® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now