jaksel
Member
- Joined
- Sep 3, 2008
- Messages
- 9
- Programming Experience
- Beginner
Open default Browser in WPF Application
I am creating a WPF application in VB.NET. I have a text box that contains a URL of a local HTML file such as C:\a\MyFile.html
I would like to open this file in the default browser when the use clicks a button on my WPF.... Here is what I have for my click event on the button:
dim aBrowser as New WebBrowser
aBrowser.Navigate(txtURL.text)
aBrowser.Show()
It returns an error code of 0.
Suggestions please.
Jim
I am creating a WPF application in VB.NET. I have a text box that contains a URL of a local HTML file such as C:\a\MyFile.html
I would like to open this file in the default browser when the use clicks a button on my WPF.... Here is what I have for my click event on the button:
dim aBrowser as New WebBrowser
aBrowser.Navigate(txtURL.text)
aBrowser.Show()
It returns an error code of 0.
Suggestions please.
Jim