| | |
How do I activate an HTML Help FIle on Button click ?
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2007
Posts: 6
Reputation:
Solved Threads: 0
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
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
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)
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)
•
•
Join Date: Oct 2007
Posts: 6
Reputation:
Solved Threads: 0
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
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
•
•
Join Date: Dec 2002
Posts: 461
Reputation:
Solved Threads: 56
I use another form with a webbrowser on it. On the form I have a property:
In the button or menu click event I put the path and file I want to show.
Hope this help some.
VB.NET Syntax (Toggle Plain Text)
Public WriteOnly Property HelpFile() Set(ByVal value) Me.WebBrowser1.Navigate(value) End Set End Property
VB.NET Syntax (Toggle Plain Text)
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
Wayne
It is hard to understand how a cemetery can raise its burial rates and blame it on the cost of living.
It is hard to understand how a cemetery can raise its burial rates and blame it on the cost of living.
![]() |
Similar Threads
- desktop html file missing (Windows NT / 2000 / XP)
- My HJT log file (Viruses, Spyware and other Nasties)
- Button Click Opens new file/program (VB.NET)
- Opening HTML file from Program (Visual Basic 4 / 5 / 6)
- hotoffers nightmare (Viruses, Spyware and other Nasties)
- Help!! Applet only works in AppletViewer but not in html file with <applet> tags!!! (Java)
- how to launch a txt file (VB.NET)
- How to display a HTML file (in browser window) from Java Program...? (Java)
Other Threads in the VB.NET Forum
- Previous Thread: Capture and save vb.NET form
- Next Thread: Is "Visual Basic 2005" Express edition .NET?
| Thread Tools | Search this Thread |
"crystal .net .net2005 30minutes 2008 access add arithmetic array assignment basic binary bing box button buttons center code combobox component connectionstring convert cpu data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dosconsolevb.net editvb.net employees excel file-dialog firewall folder google hardcopy image images isnumericfuntioncall listview login math memory mobile ms msaccess mssqlbackend mysql navigate net networking opacity output pan peertopeervideostreaming picturebox picturebox1 plugin port print printpreview problemwithinstallation project record reports" reuse save savedialog serial sorting sql storedprocedure string temp text textbox timer toolbox updown upload useraccounts usercontrol vb vb.net vb.netcode vb.nettoolboxvisualbasic2008sidebar vbnet view vista visual visualbasic visualbasic.net visualstudio web wpf






