943,854 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 2930
  • VB.NET RSS
Oct 25th, 2007
0

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

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
SerapH is offline Offline
6 posts
since Oct 2007
Oct 25th, 2007
0

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

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)
Reputation Points: 5
Solved Threads: 1
Junior Poster in Training
preetham.saroja is offline Offline
82 posts
since Jun 2007
Oct 25th, 2007
0

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

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
SerapH is offline Offline
6 posts
since Oct 2007
Oct 26th, 2007
1

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

I use another form with a webbrowser on it. On the form I have a property:
VB.NET Syntax (Toggle Plain Text)
  1. Public WriteOnly Property HelpFile()
  2. Set(ByVal value)
  3. Me.WebBrowser1.Navigate(value)
  4. End Set
  5. End Property
In the button or menu click event I put the path and file I want to show.
VB.NET Syntax (Toggle Plain Text)
  1. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  2. Form2.HelpFile = "d:\mywebs\vbnet.html"
  3. Form2.ShowDialog()
  4. End Sub
Hope this help some.
Reputation Points: 84
Solved Threads: 58
Posting Pro in Training
waynespangler is offline Offline
461 posts
since Dec 2002
Oct 26th, 2007
0

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

Aha

Thanks a lot for the help !!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
SerapH is offline Offline
6 posts
since Oct 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Capture and save vb.NET form
Next Thread in VB.NET Forum Timeline: Is "Visual Basic 2005" Express edition .NET?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC