jameslcs
jameslcs

Reputation: 265

How to run Help File?

I added a "Help.mht" file into my app Properties->Resource.

How to run the Help file when user press the Help button. Try using the following but not working.

Process.Start(My.Resources.Help)

thanks.

Upvotes: 0

Views: 318

Answers (1)

Shimmy Weitzhandler
Shimmy Weitzhandler

Reputation: 104692

Sub Main()
  Dim name As String = "Help.mht"
  Dim dir = Application.StartupPath
  Dim path = Path.Combine(dir, name)

  If Not File.Exists(path) Then
    File.WriteAllBytes(path, My.Resources.Help)
  End If

  Process.Start(path)
End Sub

Upvotes: 1

Related Questions