-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathWebbrowserFunction.vb
More file actions
25 lines (25 loc) · 919 Bytes
/
WebbrowserFunction.vb
File metadata and controls
25 lines (25 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Public Class WebbrowserFunction
Inherits WebBrowser
Dim FrmWebBrowser As FrmWebBrowser
Dim FrmHistory As FrmHistory
Private Sub webBrowserDocComplete() Handles Me.DocumentCompleted
Dim tabpage As TabPage = Me.Tag
'set length of tab max
If Me.DocumentTitle.Length > 25 Then
tabpage.Text = Me.DocumentTitle.Substring(0, 25)
Else
tabpage.Text = Me.DocumentTitle
End If
FrmWebBrowser.CmbAddress.Items.Add(Me.Url.ToString)
If FrmHistory.LBXhistory.Items.Contains(Me.Url.ToString) Then
Else
FrmHistory.LBXhistory.Items.Add(Me.Url.ToString)
End If
If Not FrmWebBrowser.CmbAddress.Items.Contains(Me.Url.ToString) Then
FrmWebBrowser.CmbAddress.Items.Add(Me.Url.ToString)
End If
End Sub
Public Sub New()
Me.ScriptErrorsSuppressed = True
End Sub
End Class