Private Sub Form_Close()
Unload Me
Unload Form1
Unload Form2
End Sub
Private Sub Close_Click()
Unload Me
Unload Form1
Unload Form2
End Sub
Private Sub Form_Load()
Wweb.Silent = True
Wweb.Navigate Form2.cboHome.Text
End Sub
Private Sub CmdHome_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
cmdhomeoc.Visible = True
Wweb.Navigate Form2.cboHome.Text
Dim i As Integer
cboURL.Text = Wweb.LocationURL
For i = 0 To cboURL.ListCount - 1
If cboURL.List(i) = Wweb.LocationURL Then Exit Sub
Next i
cboURL.AddItem Wweb.LocationURL
End Sub
Private Sub CmdHomeOC_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
cmdhome.Visible = True
cmdhomeoc.Visible = False
Wweb.Navigate Form2.cboHome.Text
Dim i As Integer
cboURL.Text = Wweb.LocationURL
For i = 0 To cboURL.ListCount - 1
If cboURL.List(i) = Wweb.LocationURL Then Exit Sub
Next i
cboURL.AddItem Wweb.LocationURL
Form2.cboHome.AddItem Wweb.LocationURL
End Sub
Private Sub CmdHomeOC_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
cmdhomeoc.Visible = False
End Sub
Private Sub CmdHome_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
cmdhomeoc.Visible = False
Wweb.Navigate Form2.cboHome.Text
Dim i As Integer
cboURL.Text = Wweb.LocationURL
For i = 0 To cboURL.ListCount - 1
If cboURL.List(i) = Wweb.LocationURL Then Exit Sub
Next i
cboURL.AddItem Wweb.LocationURL
Form2.cboHome.AddItem Wweb.LocationURL
End Sub
Private Sub ForumsOC_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
Forums.Visible = True
ForumsOC.Visible = False
Wweb.Navigate ("http://www.ryanslair.com/BloodVulturesForums")
Dim i As Integer
cboURL.Text = Wweb.LocationURL
For i = 0 To cboURL.ListCount - 1
If cboURL.List(i) = Wweb.LocationURL Then Exit Sub
Next i
cboURL.AddItem Wweb.LocationURL
Form2.cboHome.AddItem Wweb.LocationURL
End Sub
Private Sub ForumsOC_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
ForumsOC.Visible = False
End Sub
Private Sub Forums_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
ForumsOC.Visible = False
End Sub
Private Sub cmdBack_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
cmdBackOC.Visible = True
Wweb.GoBack
End Sub
Private Sub cmdBackOC_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
cmdBack.Visible = True
cmdBackOC.Visible = False
Wweb.GoBack
End Sub
Private Sub cmdBackOC_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
cmdBackOC.Visible = False
End Sub
Private Sub cmdBack_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
cmdBackOC.Visible = False
End Sub
Private Sub cmdForward_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
cmdForwardOC.Visible = True
Wweb.GoForward
End Sub
Private Sub cmdForwardOC_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
cmdForward.Visible = True
cmdForwardOC.Visible = False
Wweb.GoForward
End Sub
Private Sub cmdForward_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
cmdForwardOC.Visible = False
End Sub
Private Sub cmdForwardOC_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
cmdForwardOC.Visible = False
End Sub
Private Sub cmdStop_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
cmdStopOC.Visible = True
Wweb.Stop
End Sub
Private Sub cmdStopOC_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
cmdStop.Visible = True
cmdStopOC.Visible = False
Wweb.Stop
End Sub
Private Sub cmdStopOC_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
cmdStopOC.Visible = False
End Sub
Private Sub cmdStop_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
cmdStopOC.Visible = False
End Sub
Private Sub cmdRefresh_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
cmdRefreshOC.Visible = True
Wweb.Refresh
End Sub
Private Sub cmdRefreshOC_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
cmdRefresh.Visible = True
cmdRefreshOC.Visible = False
Wweb.Refresh
End Sub
Private Sub cmdRefresh_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
cmdRefreshOC.Visible = False
End Sub
Private Sub cmdRefreshOC_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
cmdRefreshOC.Visible = False
End Sub
Private Sub cmdGo_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
cmdGoOC.Visible = True
Wweb.Navigate cboURL.Text
Dim i As Integer
cboURL.Text = Wweb.LocationURL
For i = 0 To cboURL.ListCount - 1
If cboURL.List(i) = Wweb.LocationURL Then Exit Sub
Next i
cboURL.AddItem Wweb.LocationURL
Form2.cboHome.AddItem Wweb.LocationURL
End Sub
Private Sub cmdGoOC_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
cmdGo.Visible = True
cmdGoOC.Visible = False
Wweb.Navigate cboURL.Text
Dim i As Integer
cboURL.Text = Wweb.LocationURL
For i = 0 To cboURL.ListCount - 1
If cboURL.List(i) = Wweb.LocationURL Then Exit Sub
Next i
cboURL.AddItem Wweb.LocationURL
Form2.cboHome.AddItem Wweb.LocationURL
End Sub
Private Sub cmdGo_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
cmdGoOC.Visible = False
End Sub
Private Sub cmdGoOC_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
cmdGoOC.Visible = False
End Sub
Private Sub Search_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
search.Visible = False
searchOC.Visible = True
Wweb.Navigate ("http://www.google.com/search?hl=en&q=" + Googlesearchbox.Text + "&btnG=Google+Search")
Dim i As Integer
For i = 0 To Googlesearchbox.ListCount - 1
If Googlesearchbox.List(i) = Googlesearchbox.Text Then Exit Sub
Next i
Googlesearchbox.AddItem Googlesearchbox.Text
End Sub
Private Sub SearchOC_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
searchOC.Visible = False
search.Visible = True
Wweb.Navigate ("http://www.google.com/search?hl=en&q=" + Googlesearchbox.Text + "&btnG=Google+Search")
Dim i As Integer
For i = 0 To Googlesearchbox.ListCount - 1
If Googlesearchbox.List(i) = Googlesearchbox.Text Then Exit Sub
Next i
Googlesearchbox.AddItem Googlesearchbox.Text
End Sub
Private Sub Search_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
searchOC.Visible = False
search.Visible = True
Wweb.Navigate ("http://www.google.com/search?hl=en&q=" + Googlesearchbox.Text + "&btnG=Google+Search")
Dim i As Integer
For i = 0 To Googlesearchbox.ListCount - 1
If Googlesearchbox.List(i) = Googlesearchbox.Text Then Exit Sub
Next i
Googlesearchbox.AddItem Googlesearchbox.Text
End Sub
Private Sub SearchOC_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
searchOC.Visible = False
search.Visible = True
Wweb.Navigate ("http://www.google.com/search?hl=en&q=" + Googlesearchbox.Text + "&btnG=Google+Search")
Dim i As Integer
For i = 0 To Googlesearchbox.ListCount - 1
If Googlesearchbox.List(i) = Googlesearchbox.Text Then Exit Sub
Next i
Googlesearchbox.AddItem Googlesearchbox.Text
End Sub
Private Sub cboURL_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Wweb.Navigate cboURL.Text
End If
Dim i As Integer
For i = 0 To cboURL.ListCount - 1
If cboURL.List(i) = Wweb.LocationURL Then Exit Sub
Next i
cboURL.AddItem Wweb.LocationURL
Form2.cboHome.AddItem Wweb.LocationURL
End Sub
Private Sub Googlesearchbox_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Wweb.Navigate ("http://www.google.com/search?hl=en&q=" + Googlesearchbox.Text + "&btnG=Google+Search")
Dim i As Integer
For i = 0 To Googlesearchbox.ListCount - 1
If Googlesearchbox.List(i) = Googlesearchbox.Text Then Exit Sub
Next i
Googlesearchbox.AddItem Googlesearchbox.Text
End If
End Sub
Private Sub Tools_Click()
Form2.Visible = True
End Sub
Private Sub Wweb_NavigateComplete2(ByVal pDisp As Object, URL As Variant)
On Error Resume Next
Dim i As Integer
cboURL.Text = Wweb.LocationURL
For i = 0 To cboURL.ListCount - 1
If cboURL.List(i) = Wweb.LocationURL Then Exit Sub
Next i
cboURL.AddItem Wweb.LocationURL
Form2.cboHome.AddItem Wweb.LocationURL
End Sub
Private Sub Search_Click()
Wweb.Navigate ("http://www.google.com/search?hl=en&q=" + Googlesearchbox.Text + "&btnG=Google+Search")
Dim i As Integer
For i = 0 To Googlesearchbox.ListCount - 1
If Googlesearchbox.List(i) = Googlesearchbox.Text Then Exit Sub
Next i
Googlesearchbox.AddItem Googlesearchbox.Text
End Sub
Private Sub SearchOC_Click()
Wweb.Navigate ("http://www.google.com/search?hl=en&q=" + Googlesearchbox.Text + "&btnG=Google+Search")
Dim i As Integer
For i = 0 To Googlesearchbox.ListCount - 1
If Googlesearchbox.List(i) = Googlesearchbox.Text Then Exit Sub
Next i
Googlesearchbox.AddItem Googlesearchbox.Text
End Sub
Private Sub Google_Click()
Wweb.Navigate ("http://www.google.com/")
End Sub
Private Sub cmdBack_Click()
On Error Resume Next
Wweb.GoBack
End Sub
Private Sub cmdForward_Click()
On Error Resume Next
Wweb.GoForward
End Sub
Private Sub cmdStop_Click()
On Error Resume Next
Wweb.Stop
End Sub
Private Sub cmdRefresh_Click()
Wweb.Refresh
End Sub
Private Sub cmdGo_Click()
Wweb.Navigate cboURL.Text
Dim i As Integer
cboURL.Text = Wweb.LocationURL
For i = 0 To cboURL.ListCount - 1
If cboURL.List(i) = Wweb.LocationURL Then Exit Sub
Next i
cboURL.AddItem Wweb.LocationURL
Form2.cboHome.AddItem Wweb.LocationURL
End Sub
Private Sub cmdBackCO_Click()
On Error Resume Next
Wweb.GoBack
End Sub
Private Sub cmdForwardCO_Click()
On Error Resume Next
Wweb.GoForward
End Sub
Private Sub cmdStopCO_Click()
On Error Resume Next
Wweb.Stop
End Sub
Private Sub cmdRefreshCO_Click()
Wweb.Refresh
End Sub
Private Sub cmdGoCO_click()
Wweb.Navigate cboURL.Text
Dim i As Integer
cboURL.Text = Wweb.LocationURL
For i = 0 To cboURL.ListCount - 1
If cboURL.List(i) = Wweb.LocationURL Then Exit Sub
Next i
cboURL.AddItem Wweb.LocationURL
Form2.cboHome.AddItem Wweb.LocationURL
End Sub
Private Sub cmdForums_click()
Wweb.Navigate ("http://www.ryanslair.com/BloodVulturesForums")
Dim i As Integer
cboURL.Text = Wweb.LocationURL
For i = 0 To cboURL.ListCount - 1
If cboURL.List(i) = Wweb.LocationURL Then Exit Sub
Next i
cboURL.AddItem Wweb.LocationURL
Form2.cboHome.AddItem Wweb.LocationURL
End Sub
Private Sub cmdForumsCO_click()
Wweb.Navigate ("http://www.ryanslair.com/BloodVulturesForums")
Dim i As Integer
cboURL.Text = Wweb.LocationURL
For i = 0 To cboURL.ListCount - 1
If cboURL.List(i) = Wweb.LocationURL Then Exit Sub
Next i
cboURL.AddItem Wweb.LocationURL
Form2.cboHome.AddItem Wweb.LocationURL
End Sub
Private Function IsPopupWindow() As Boolean
On Error Resume Next
If Wweb.Document.activeElement.tagName = "BODY" Or Wweb.Document.activeElement.tagName = "IFRAME" Then
IsPopupWindow = True
Else
IsPopupWindow = False
End If
End Function
Private Sub Wweb_NewWindow2(ppDisp As Object, Cancel As Boolean)
Dim frm As Form1
Cancel = IsPopupWindow
If Cancel = False Then
Set frm = New Form1
Set ppDisp = frm.Wweb.object
frm.Show
End If
End Sub