vbAccelerator - Contents of code file: WebFrm.frm
VERSION 5.00
Object = "{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.1#0"; "SHDOCVW.DLL"
Begin VB.Form WebFrm
BorderStyle = 5 'Sizable ToolWindow
Caption = "Form2"
ClientHeight = 2910
ClientLeft = 60
ClientTop = 300
ClientWidth = 5355
LinkTopic = "Form2"
MaxButton = 0 'False
MinButton = 0 'False
Moveable = 0 'False
ScaleHeight = 194
ScaleMode = 3 'Pixel
ScaleWidth = 357
ShowInTaskbar = 0 'False
Visible = 0 'False
Begin VB.ComboBox Cb
Height = 315
ItemData = "WebFrm.frx":0000
Left = 0
List = "WebFrm.frx":000A
TabIndex = 0
Text = "Test1"
Top = 0
Width = 5175
End
Begin SHDocVwCtl.WebBrowser Wb
Height = 2415
Left = 0
TabIndex = 1
Top = 360
Width = 5175
ExtentX = 9128
ExtentY = 4260
ViewMode = 1
Offline = 0
Silent = 0
RegisterAsBrowser= 0
RegisterAsDropTarget= 1
AutoArrange = -1 'True
NoClientEdge = 0 'False
AlignLeft = 0 'False
ViewID = "{0057D0E0-3573-11CF-AE69-08002B2E1262}"
Location = ""
End
End
Attribute VB_Name = "WebFrm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Public SubForm As Object
Private Sub Form_GotFocus()
If Cb.Visible Then Cb.SetFocus
End Sub
Private Sub Form_Load()
Left = -30000
Wb.Silent = True
Wb.Offline = True
Wb.Navigate "http://www.tir.com"
End Sub
Private Sub Form_Resize()
If (IsChild(MDI.hwnd, hwnd) = 1) Then
Cb.Move -2, -2, ScaleWidth + 4
Wb.Move -3, Cb.Height - 1, ScaleWidth + 5, Abs(ScaleHeight - Cb.Height +
2)
Else
Cb.Move 0, 0, ScaleWidth
Wb.Move 0, Cb.Height + 1, ScaleWidth, Abs(ScaleHeight - (Cb.Height + 1))
End If
End Sub
|
|