954,551 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How do I activate an HTML Help FIle on Button click ?

I already have web pages written in HTML that give out Help info about various functions of the application.

How do I get them to pop up when the user clicks a button on the VB.NET form ?

Private Sub btnHelp_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnHElp.Click


??


End Sub

SerapH
Newbie Poster
6 posts since Oct 2007
Reputation Points: 10
Solved Threads: 0
 

do u mean,
clickin on button-it should perform the action as well as open popup window then..
sub btn_click(sender,obj)
Dim popupScript1 As String = ""
'Page.RegisterStartupScript("PopupScript", popupScript1)

preetham.saroja
Junior Poster in Training
82 posts since Jun 2007
Reputation Points: 5
Solved Threads: 1
 

I managed to do something like this in the meantime >>


Private Sub MenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem11.Click

Try
Process.Start("IExplore.exe", "C:/....../bin/GettingStarted.htm")
Catch
MsgBox("Error launching Internet Explorer")
End Try


End Sub

SerapH
Newbie Poster
6 posts since Oct 2007
Reputation Points: 10
Solved Threads: 0
 

I use another form with a webbrowser on it. On the form I have a property:

Public WriteOnly Property HelpFile()
        Set(ByVal value)
            Me.WebBrowser1.Navigate(value)
        End Set
    End Property

In the button or menu click event I put the path and file I want to show.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Form2.HelpFile = "d:\mywebs\vbnet.html"
        Form2.ShowDialog()
    End Sub

Hope this help some.

waynespangler
Posting Pro in Training
461 posts since Dec 2002
Reputation Points: 84
Solved Threads: 58
 

Aha :)

Thanks a lot for the help !!

SerapH
Newbie Poster
6 posts since Oct 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You