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

Recommended Answers

All 4 Replies

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 = "<script language='javascript'>" & _
window.open('PopUp.aspx', 'CustomPopUp', " & _
' "'width=500, height=500, menubar=yes,resizable=yes')" & _
' "</script>"
'Page.RegisterStartupScript("PopupScript", popupScript1)

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

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.

commented: The only sense amongst the other nonsense! +12

Aha :)

Thanks a lot for the help !!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.