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

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Oct 2007
Posts: 6
Reputation: SerapH is an unknown quantity at this point 
Solved Threads: 0
SerapH SerapH is offline Offline
Newbie Poster

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

 
0
  #1
Oct 25th, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 82
Reputation: preetham.saroja is an unknown quantity at this point 
Solved Threads: 1
preetham.saroja's Avatar
preetham.saroja preetham.saroja is offline Offline
Junior Poster in Training

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

 
0
  #2
Oct 25th, 2007
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)
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 6
Reputation: SerapH is an unknown quantity at this point 
Solved Threads: 0
SerapH SerapH is offline Offline
Newbie Poster

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

 
0
  #3
Oct 25th, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Dec 2002
Posts: 461
Reputation: waynespangler is on a distinguished road 
Solved Threads: 56
waynespangler waynespangler is offline Offline
Posting Pro in Training

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

 
1
  #4
Oct 26th, 2007
I use another form with a webbrowser on it. On the form I have a property:
  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.
  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.
Wayne

It is hard to understand how a cemetery can raise its burial rates and blame it on the cost of living.
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 6
Reputation: SerapH is an unknown quantity at this point 
Solved Threads: 0
SerapH SerapH is offline Offline
Newbie Poster

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

 
0
  #5
Oct 26th, 2007
Aha

Thanks a lot for the help !!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC