| | |
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 |
.net .net2008 30minutes 2005 2008 access account arithmetic array basic bing button buttons center check code combobox component connectionstring crystalreport data database databasesearch datagrid datagridview date design dissertation dissertations dropdownlist excel fade file-dialog filter folder ftp generatetags google gridview hardcopy images input insert intel internet mobile monitor ms net networking objects output panel passingparameters peertopeervideostreaming picturebox picturebox1 port position print printing problem problemwithinstallation project save searchbox searchvb.net select serial shutdown soap survey table tcp temperature text textbox timer timespan toolbox trim update updown user vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web winforms wpf year






