T
Thomas SGS
Guest
I have this code:
Public Class Form1
Dim int As Integer = 0
Dim Favorites As String = "C:\Favorites.dat"
Dim SW As IO.StreamWriter
End Class
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim Browser As New WebBrowser
TabControl1.TabPages.Add("New Page")
Browser.Name = "Thomass Web Browser"
Browser.Dock = DockStyle.Fill
TabControl1.SelectedTab.Controls.Add(Browser)
AddHandler Browser.ProgressChanged, AddressOf Loading
AddHandler Browser.DocumentCompleted, AddressOf Done
int = int + 1
CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Navigate(My.Settings.Homepage)
If IO.File.Exists(Favorites) = False Then
IO.File.Create(Favorites)
Else
End If
End Sub
I wonder whats wrong with that reads "Valid Statement is not in a namespace." I am a beginner
Please help me !
Continue reading...
Public Class Form1
Dim int As Integer = 0
Dim Favorites As String = "C:\Favorites.dat"
Dim SW As IO.StreamWriter
End Class
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim Browser As New WebBrowser
TabControl1.TabPages.Add("New Page")
Browser.Name = "Thomass Web Browser"
Browser.Dock = DockStyle.Fill
TabControl1.SelectedTab.Controls.Add(Browser)
AddHandler Browser.ProgressChanged, AddressOf Loading
AddHandler Browser.DocumentCompleted, AddressOf Done
int = int + 1
CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Navigate(My.Settings.Homepage)
If IO.File.Exists(Favorites) = False Then
IO.File.Create(Favorites)
Else
End If
End Sub
I wonder whats wrong with that reads "Valid Statement is not in a namespace." I am a beginner
Please help me !
Continue reading...