I've just set up VS 2019 and I'm trying to use the WebBrowser in VB.net. I followed a YouTube video, created the form, browser, etc, but when I 'start' the code the Browser screen flashes on for half a second then drops.
There are no errors shown but I get 'The program '[7804] WebBrowser_2.exe' has exited with code 0 (0x0).'
and ideas please?
I've cut it down to the minumum, to go to one web site...
form1.vb
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
WebBrowser1.Navigate("www.bbc.co.uk")
End Sub
End Class
I've also tried a few different web sites, and setting txtURL.Text then using:
WebBrowser1.Navigate(txtURL.Text)
WebBrowser1.Navigate(New Uri(txtURL.Text))
Nothing's working yet.