home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / smfdoo1a / frmdoort.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1999-09-07  |  40.3 KB  |  1,287 lines

  1. VERSION 5.00
  2. Object = "{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.1#0"; "SHDOCVW.DLL"
  3. Object = "{48E59290-9880-11CF-9754-00AA00C00908}#1.0#0"; "MSINET.OCX"
  4. Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
  5. Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
  6. Begin VB.Form frmDoorToTheNet 
  7.    BackColor       =   &H00000000&
  8.    Caption         =   "The DoorWay To The Net"
  9.    ClientHeight    =   7935
  10.    ClientLeft      =   150
  11.    ClientTop       =   720
  12.    ClientWidth     =   10530
  13.    Icon            =   "frmDoorToTheNet.frx":0000
  14.    LinkTopic       =   "Form1"
  15.    MaxButton       =   0   'False
  16.    ScaleHeight     =   7935
  17.    ScaleWidth      =   10530
  18.    ShowInTaskbar   =   0   'False
  19.    Begin MSComctlLib.ProgressBar PBar 
  20.       Height          =   255
  21.       Left            =   120
  22.       TabIndex        =   10
  23.       Top             =   7560
  24.       Width           =   1695
  25.       _ExtentX        =   2990
  26.       _ExtentY        =   450
  27.       _Version        =   393216
  28.       Appearance      =   0
  29.    End
  30.    Begin VB.Timer Timer1 
  31.       Interval        =   1000
  32.       Left            =   9360
  33.       Top             =   120
  34.    End
  35.    Begin MSComDlg.CommonDialog dlgEdit 
  36.       Left            =   9960
  37.       Top             =   840
  38.       _ExtentX        =   847
  39.       _ExtentY        =   847
  40.       _Version        =   393216
  41.    End
  42.    Begin VB.Timer tmrWinClass 
  43.       Interval        =   1000
  44.       Left            =   -240
  45.       Top             =   7920
  46.    End
  47.    Begin VB.TextBox txtStatus 
  48.       BackColor       =   &H80000001&
  49.       Enabled         =   0   'False
  50.       Height          =   285
  51.       Left            =   2640
  52.       TabIndex        =   7
  53.       Top             =   7560
  54.       Width           =   6255
  55.    End
  56.    Begin VB.ComboBox txtAddress 
  57.       BackColor       =   &H80000001&
  58.       ForeColor       =   &H000000FF&
  59.       Height          =   315
  60.       Left            =   1080
  61.       Sorted          =   -1  'True
  62.       TabIndex        =   6
  63.       Top             =   960
  64.       Width           =   4935
  65.    End
  66.    Begin VB.OptionButton optexcite 
  67.       BackColor       =   &H80000012&
  68.       Caption         =   "HotBot"
  69.       ForeColor       =   &H000000FF&
  70.       Height          =   255
  71.       Left            =   8520
  72.       MousePointer    =   10  'Up Arrow
  73.       TabIndex        =   4
  74.       ToolTipText     =   "Excite Search Engine"
  75.       Top             =   1080
  76.       Width           =   255
  77.    End
  78.    Begin VB.OptionButton optLycos 
  79.       BackColor       =   &H80000012&
  80.       Caption         =   "Lycos"
  81.       ForeColor       =   &H000000FF&
  82.       Height          =   375
  83.       Left            =   8520
  84.       MousePointer    =   10  'Up Arrow
  85.       TabIndex        =   3
  86.       ToolTipText     =   "Lycos Search Engine"
  87.       Top             =   600
  88.       Width           =   255
  89.    End
  90.    Begin VB.OptionButton optNetscape 
  91.       BackColor       =   &H80000012&
  92.       Caption         =   "Netscape"
  93.       ForeColor       =   &H000000FF&
  94.       Height          =   255
  95.       Left            =   6960
  96.       MousePointer    =   10  'Up Arrow
  97.       TabIndex        =   2
  98.       ToolTipText     =   "Netscape Search Engine"
  99.       Top             =   1080
  100.       Width           =   255
  101.    End
  102.    Begin VB.OptionButton optYahoo 
  103.       BackColor       =   &H80000007&
  104.       Caption         =   "Yahoo"
  105.       ForeColor       =   &H000000FF&
  106.       Height          =   255
  107.       Left            =   6960
  108.       MousePointer    =   10  'Up Arrow
  109.       TabIndex        =   1
  110.       ToolTipText     =   "Yahoo Search Engine"
  111.       Top             =   600
  112.       Width           =   255
  113.    End
  114.    Begin InetCtlsObjects.Inet Inet1 
  115.       Left            =   120
  116.       Top             =   1440
  117.       _ExtentX        =   1005
  118.       _ExtentY        =   1005
  119.       _Version        =   393216
  120.    End
  121.    Begin SHDocVwCtl.WebBrowser WebBrowser1 
  122.       Height          =   5895
  123.       Left            =   120
  124.       TabIndex        =   0
  125.       Top             =   1440
  126.       Width           =   10335
  127.       ExtentX         =   18230
  128.       ExtentY         =   10398
  129.       ViewMode        =   1
  130.       Offline         =   0
  131.       Silent          =   0
  132.       RegisterAsBrowser=   0
  133.       RegisterAsDropTarget=   1
  134.       AutoArrange     =   -1  'True
  135.       NoClientEdge    =   0   'False
  136.       AlignLeft       =   0   'False
  137.       ViewID          =   "{0057D0E0-3573-11CF-AE69-08002B2E1262}"
  138.       Location        =   ""
  139.    End
  140.    Begin VB.Label Label2 
  141.       Caption         =   "Label2"
  142.       Height          =   255
  143.       Left            =   -600
  144.       TabIndex        =   11
  145.       Top             =   7920
  146.       Width           =   615
  147.    End
  148.    Begin VB.Label lblStatus 
  149.       BackColor       =   &H80000012&
  150.       Caption         =   "Status:"
  151.       ForeColor       =   &H000000FF&
  152.       Height          =   255
  153.       Left            =   2040
  154.       TabIndex        =   9
  155.       Top             =   7560
  156.       Width           =   615
  157.    End
  158.    Begin VB.Label lblSearchit 
  159.       BackColor       =   &H80000015&
  160.       Caption         =   "Search On Yahoo!"
  161.       BeginProperty Font 
  162.          Name            =   "Lucida Sans"
  163.          Size            =   12
  164.          Charset         =   0
  165.          Weight          =   400
  166.          Underline       =   0   'False
  167.          Italic          =   -1  'True
  168.          Strikethrough   =   0   'False
  169.       EndProperty
  170.       ForeColor       =   &H000000FF&
  171.       Height          =   375
  172.       Left            =   7260
  173.       MousePointer    =   10  'Up Arrow
  174.       TabIndex        =   8
  175.       ToolTipText     =   "Search Yahoo Search Engine"
  176.       Top             =   180
  177.       Width           =   2415
  178.    End
  179.    Begin VB.Image imgLycosSearch 
  180.       Height          =   330
  181.       Left            =   8520
  182.       Picture         =   "frmDoorToTheNet.frx":08CA
  183.       Top             =   6120
  184.       Width           =   1260
  185.    End
  186.    Begin VB.Line Line4 
  187.       BorderColor     =   &H000000FF&
  188.       X1              =   9840
  189.       X2              =   10560
  190.       Y1              =   735
  191.       Y2              =   735
  192.    End
  193.    Begin VB.Image imgNetscape 
  194.       Height          =   330
  195.       Left            =   7155
  196.       Picture         =   "frmDoorToTheNet.frx":1444
  197.       Top             =   1020
  198.       Width           =   1185
  199.    End
  200.    Begin VB.Image imgYahoo 
  201.       Height          =   285
  202.       Left            =   7200
  203.       Picture         =   "frmDoorToTheNet.frx":1F66
  204.       Top             =   645
  205.       Width           =   1305
  206.    End
  207.    Begin VB.Image imgexcite 
  208.       Height          =   390
  209.       Left            =   8760
  210.       Picture         =   "frmDoorToTheNet.frx":2A30
  211.       Top             =   960
  212.       Width           =   975
  213.    End
  214.    Begin VB.Image ImgLycos 
  215.       Height          =   375
  216.       Left            =   8760
  217.       Picture         =   "frmDoorToTheNet.frx":355A
  218.       Top             =   600
  219.       Width           =   945
  220.    End
  221.    Begin VB.Image Image3 
  222.       Height          =   495
  223.       Left            =   4680
  224.       Top             =   3480
  225.       Width           =   1215
  226.    End
  227.    Begin VB.Image imgYahooChat 
  228.       Height          =   270
  229.       Left            =   5200
  230.       MousePointer    =   10  'Up Arrow
  231.       Picture         =   "frmDoorToTheNet.frx":3FDC
  232.       ToolTipText     =   "Yahoo Chat"
  233.       Top             =   315
  234.       Width           =   1515
  235.    End
  236.    Begin VB.Image imgYahoomail 
  237.       Height          =   315
  238.       Left            =   3190
  239.       MousePointer    =   10  'Up Arrow
  240.       Picture         =   "frmDoorToTheNet.frx":4B6E
  241.       ToolTipText     =   "Yahoo Mail"
  242.       Top             =   300
  243.       Width           =   1110
  244.    End
  245.    Begin VB.Image imgHotmail 
  246.       Height          =   540
  247.       Left            =   4440
  248.       MousePointer    =   10  'Up Arrow
  249.       Picture         =   "frmDoorToTheNet.frx":55EC
  250.       ToolTipText     =   "MSN HotMail"
  251.       Top             =   240
  252.       Width           =   720
  253.    End
  254.    Begin VB.Image ImgExitDoor 
  255.       Height          =   555
  256.       Left            =   9960
  257.       MousePointer    =   10  'Up Arrow
  258.       Picture         =   "frmDoorToTheNet.frx":60EE
  259.       Stretch         =   -1  'True
  260.       ToolTipText     =   "Exit DoorWay"
  261.       Top             =   120
  262.       Width           =   495
  263.    End
  264.    Begin VB.Image imgOpenDoor 
  265.       Height          =   480
  266.       Left            =   6120
  267.       MousePointer    =   10  'Up Arrow
  268.       Picture         =   "frmDoorToTheNet.frx":621E
  269.       ToolTipText     =   "Open DoorWay"
  270.       Top             =   840
  271.       Width           =   495
  272.    End
  273.    Begin VB.Image imgHome 
  274.       Height          =   480
  275.       Left            =   2640
  276.       MousePointer    =   10  'Up Arrow
  277.       Picture         =   "frmDoorToTheNet.frx":632A
  278.       ToolTipText     =   "Home ""www.Yahoo.com"""
  279.       Top             =   165
  280.       Width           =   480
  281.    End
  282.    Begin VB.Image imgConnect 
  283.       Height          =   480
  284.       Left            =   9960
  285.       MousePointer    =   10  'Up Arrow
  286.       Picture         =   "frmDoorToTheNet.frx":6729
  287.       ToolTipText     =   "Connect"
  288.       Top             =   7440
  289.       Width           =   480
  290.    End
  291.    Begin VB.Image imgReload 
  292.       Height          =   525
  293.       Left            =   1320
  294.       MousePointer    =   10  'Up Arrow
  295.       Picture         =   "frmDoorToTheNet.frx":6F6B
  296.       ToolTipText     =   "Reload"
  297.       Top             =   195
  298.       Width           =   540
  299.    End
  300.    Begin VB.Image imgfoward 
  301.       Height          =   375
  302.       Left            =   720
  303.       MousePointer    =   10  'Up Arrow
  304.       Picture         =   "frmDoorToTheNet.frx":7899
  305.       Stretch         =   -1  'True
  306.       ToolTipText     =   "Foward"
  307.       Top             =   240
  308.       Width           =   540
  309.    End
  310.    Begin VB.Image imgBack 
  311.       Height          =   345
  312.       Left            =   120
  313.       MousePointer    =   10  'Up Arrow
  314.       Picture         =   "frmDoorToTheNet.frx":80CB
  315.       Stretch         =   -1  'True
  316.       ToolTipText     =   "Back"
  317.       Top             =   240
  318.       Width           =   540
  319.    End
  320.    Begin VB.Image Image2 
  321.       Height          =   495
  322.       Left            =   4680
  323.       Top             =   3480
  324.       Width           =   1215
  325.    End
  326.    Begin VB.Line Line3 
  327.       BorderColor     =   &H000000FF&
  328.       X1              =   9840
  329.       X2              =   9840
  330.       Y1              =   120
  331.       Y2              =   1320
  332.    End
  333.    Begin VB.Line Line2 
  334.       BorderColor     =   &H000000FF&
  335.       X1              =   6840
  336.       X2              =   6840
  337.       Y1              =   120
  338.       Y2              =   1320
  339.    End
  340.    Begin VB.Line Line1 
  341.       X1              =   4680
  342.       X2              =   5880
  343.       Y1              =   3240
  344.       Y2              =   3720
  345.    End
  346.    Begin VB.Label Label1 
  347.       BackColor       =   &H80000007&
  348.       Caption         =   "Address :"
  349.       ForeColor       =   &H000000FF&
  350.       Height          =   255
  351.       Left            =   360
  352.       TabIndex        =   5
  353.       Top             =   960
  354.       Width           =   735
  355.    End
  356.    Begin VB.Image imgExit 
  357.       Height          =   480
  358.       Left            =   1920
  359.       MousePointer    =   10  'Up Arrow
  360.       Picture         =   "frmDoorToTheNet.frx":88FD
  361.       ToolTipText     =   "Stop"
  362.       Top             =   180
  363.       Width           =   480
  364.    End
  365.    Begin VB.Image Image1 
  366.       Height          =   495
  367.       Left            =   8280
  368.       Top             =   600
  369.       Width           =   615
  370.    End
  371.    Begin VB.Menu mnuFile 
  372.       Caption         =   "&File"
  373.       Begin VB.Menu mnuNew 
  374.          Caption         =   "&New"
  375.          Begin VB.Menu mnuDorWay 
  376.             Caption         =   "DoorWay"
  377.          End
  378.       End
  379.       Begin VB.Menu mnuOpen 
  380.          Caption         =   "&Open"
  381.          Shortcut        =   ^O
  382.       End
  383.       Begin VB.Menu mnuClose 
  384.          Caption         =   "&Close"
  385.          Shortcut        =   ^W
  386.       End
  387.       Begin VB.Menu mnuLine1 
  388.          Caption         =   "-"
  389.       End
  390.       Begin VB.Menu mnuSave 
  391.          Caption         =   "&Save"
  392.          Shortcut        =   ^S
  393.       End
  394.       Begin VB.Menu mnuSaveAs 
  395.          Caption         =   "Save &As"
  396.          Shortcut        =   ^A
  397.       End
  398.       Begin VB.Menu mnuLine2 
  399.          Caption         =   "-"
  400.       End
  401.       Begin VB.Menu mnuPrint 
  402.          Caption         =   "&Print"
  403.          Shortcut        =   ^P
  404.       End
  405.       Begin VB.Menu mnuline3 
  406.          Caption         =   "-"
  407.       End
  408.       Begin VB.Menu mnuExit 
  409.          Caption         =   "E&xit"
  410.          Shortcut        =   ^Q
  411.       End
  412.    End
  413.    Begin VB.Menu mnuEdit 
  414.       Caption         =   "&Edit"
  415.       Begin VB.Menu mnuCut 
  416.          Caption         =   "Cu&t"
  417.          Shortcut        =   ^X
  418.       End
  419.       Begin VB.Menu mnuCopy 
  420.          Caption         =   "&Copy"
  421.          Shortcut        =   ^C
  422.       End
  423.       Begin VB.Menu mnuPaste 
  424.          Caption         =   "&Paste"
  425.          Shortcut        =   +{INSERT}
  426.       End
  427.       Begin VB.Menu mnuLine4 
  428.          Caption         =   "-"
  429.       End
  430.       Begin VB.Menu mnuSelectall 
  431.          Caption         =   "Select &All"
  432.          Shortcut        =   +{DEL}
  433.       End
  434.       Begin VB.Menu mnulines 
  435.          Caption         =   "-"
  436.       End
  437.       Begin VB.Menu mnuFind 
  438.          Caption         =   "&Find"
  439.          Shortcut        =   ^F
  440.       End
  441.       Begin VB.Menu mnuFindNext 
  442.          Caption         =   "Find &Next"
  443.          Shortcut        =   {F3}
  444.       End
  445.    End
  446.    Begin VB.Menu mnuFavorites 
  447.       Caption         =   "Favorites"
  448.       Begin VB.Menu mnuAddToFavorites 
  449.          Caption         =   "Add to Favorites"
  450.          Shortcut        =   {F9}
  451.       End
  452.       Begin VB.Menu mnuViewFavorites 
  453.          Caption         =   "View Favorites"
  454.          Shortcut        =   {F11}
  455.       End
  456.       Begin VB.Menu mnuDeleteFavorite 
  457.          Caption         =   "Delete Favorite"
  458.          Shortcut        =   {F12}
  459.       End
  460.    End
  461.    Begin VB.Menu mnuView 
  462.       Caption         =   "&View"
  463.       Begin VB.Menu mnuReload 
  464.          Caption         =   "Reload"
  465.       End
  466.       Begin VB.Menu mnuRefresh 
  467.          Caption         =   "Re&fresh"
  468.       End
  469.       Begin VB.Menu linea 
  470.          Caption         =   "-"
  471.       End
  472.       Begin VB.Menu mnuViewSource 
  473.          Caption         =   "Page Source"
  474.       End
  475.       Begin VB.Menu line11 
  476.          Caption         =   "-"
  477.       End
  478.       Begin VB.Menu mnuPreferences 
  479.          Caption         =   "&Preferences"
  480.          Shortcut        =   {F2}
  481.       End
  482.    End
  483.    Begin VB.Menu mnuGo 
  484.       Caption         =   "&Go"
  485.       Begin VB.Menu MnuSearch 
  486.          Caption         =   "&Search Engines"
  487.          Begin VB.Menu mnuSmfSearchengine 
  488.             Caption         =   "SMF Search Engine"
  489.          End
  490.          Begin VB.Menu mnuYahoo 
  491.             Caption         =   "Yahoo"
  492.          End
  493.          Begin VB.Menu mnuAskJeeves 
  494.             Caption         =   "Ask Jeeves"
  495.          End
  496.          Begin VB.Menu mnuHotBot 
  497.             Caption         =   "Hot Bot"
  498.          End
  499.          Begin VB.Menu mnuLycos 
  500.             Caption         =   "Lycos"
  501.          End
  502.          Begin VB.Menu mnuExcite 
  503.             Caption         =   "Excite"
  504.          End
  505.          Begin VB.Menu mnuNetscape 
  506.             Caption         =   "Netscape"
  507.          End
  508.          Begin VB.Menu mnuDogPile 
  509.             Caption         =   "Dog Pile"
  510.          End
  511.          Begin VB.Menu mnuMSN 
  512.             Caption         =   "MSN"
  513.          End
  514.          Begin VB.Menu mnuAltaVista 
  515.             Caption         =   "Alta Vista"
  516.          End
  517.          Begin VB.Menu mnuGoto 
  518.             Caption         =   "Goto"
  519.          End
  520.          Begin VB.Menu mnuthunderstone 
  521.             Caption         =   "ThunderStone"
  522.          End
  523.          Begin VB.Menu mnulookSmart 
  524.             Caption         =   "Look Smart"
  525.          End
  526.          Begin VB.Menu mnuDirectHit 
  527.             Caption         =   "Direct Hit"
  528.          End
  529.          Begin VB.Menu mnuAboutcom 
  530.             Caption         =   "About"
  531.          End
  532.          Begin VB.Menu mnuInfoSeek 
  533.             Caption         =   "Info Seek"
  534.          End
  535.       End
  536.       Begin VB.Menu mnuline34 
  537.          Caption         =   "-"
  538.       End
  539.       Begin VB.Menu mnuBack 
  540.          Caption         =   "Back"
  541.       End
  542.       Begin VB.Menu mnuFoward 
  543.          Caption         =   "Foward"
  544.       End
  545.       Begin VB.Menu mnuHome 
  546.          Caption         =   "Home"
  547.       End
  548.    End
  549.    Begin VB.Menu mnuHelp 
  550.       Caption         =   "&Help"
  551.       Begin VB.Menu mnuAbout 
  552.          Caption         =   "About "
  553.          Begin VB.Menu mnuMacrosoft 
  554.             Caption         =   "MacroSoft DoorWays"
  555.          End
  556.       End
  557.       Begin VB.Menu mnuHelpOn 
  558.          Caption         =   "Help On"
  559.          Shortcut        =   ^H
  560.       End
  561.    End
  562. Attribute VB_Name = "frmDoorToTheNet"
  563. Attribute VB_GlobalNameSpace = False
  564. Attribute VB_Creatable = False
  565. Attribute VB_PredeclaredId = True
  566. Attribute VB_Exposed = False
  567. 'Bouncing exit vairables and declarations-------------
  568.        Private Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long
  569.        Private Declare Function GetWindowRect Lib "user32" (ByVal hwnd As Long, lpRect As RECT) As Long
  570.        Private Type RECT
  571.          Left As Long
  572.          Top As Long
  573.          Right As Long
  574.          Bottom As Long
  575.        End Type
  576.        Dim What As RECT
  577. '-----------------------------------------------------
  578. Private Sub Form_Activate()
  579. mnuFind.Enabled = False
  580. mnuFindNext = False
  581. Do Until Me.Left <= 0
  582.     If Left > 12000 Then Me.Width = Me.Width + 1
  583.     Me.Left = Me.Left - 1
  584.     DoEvents
  585.     Do Until Me.Top <= 0
  586.        Me.Top = Me.Top - 1
  587.     Loop
  588.     Do Until Me.Height >= 9000
  589.     Me.Height = Me.Height + 1
  590. End Sub
  591. Private Sub Form_GotFocus()
  592. Do Until Me.Left <= 0
  593.     Me.Width = Me.Width + 1
  594.     Me.Left = Me.Left - 1
  595.     DoEvents
  596.     Do Until Me.Height >= 8700
  597.     Me.Height = Me.Height + 1
  598.     Loop
  599. End Sub
  600. Private Sub Form_Load()
  601. rs = 0
  602. 'txtAddress.Clear
  603. Dim recentsites(1000) As String
  604. Open App.Path + "\recent" For Input As #1
  605. Do While Not EOF(1)
  606. Input #1, recentsites(rs)
  607. txtAddress.AddItem recentsites(rs)
  608. rs = rs + 1
  609. Close #1
  610. Open App.Path + "\Favorites" For Append As #1
  611. Close #1
  612. On Error Resume Next
  613. Dim rln
  614. rln = Shell("C:\rln95\rlnuserw.exe")
  615. frmDoorToTheNet.Left = 0
  616. 'frmDoorToTheNet.Width = 1000
  617. frmDoorToTheNet.Height = 0
  618. Me.Top = 500
  619. Me.Left = 12000
  620. Open App.Path + "\HomePage" For Input As #1
  621. Input #1, homepage
  622. Close #1
  623. txtAddress.Text = homepage
  624. WebBrowser1.Navigate txtAddress.Text
  625. imgHome.ToolTipText = homepage
  626. End Sub
  627. Private Sub cmdHotMail_Click()
  628. txtAddress.Text = "www.Hotmail.com"
  629. Call cmdOpenDoor_Click
  630. End Sub
  631. Private Sub imgBack_Click()
  632.    On Error Resume Next
  633. WebBrowser1.GoBack
  634. End Sub
  635. Private Sub imgConnect_Click()
  636. On Error Resume Next
  637. Dim x
  638. x = Shell("C:\rln95\rlnuserw.exe")
  639. End Sub
  640. Private Sub ImgExitDoor_Click()
  641.   'txtAddress.Text = WebBrowser1.Document
  642.   On Error Resume Next
  643. frmExitDoorWay.Show
  644. End Sub
  645. Private Sub imgfoward_Click()
  646.   On Error Resume Next
  647.     WebBrowser1.GoForward
  648. End Sub
  649. Private Sub imgHome_Click()
  650. Open App.Path + "\HomePage" For Input As #1
  651. Input #1, homepage
  652. Close #1
  653. On Error Resume Next
  654. txtAddress.Text = homepage
  655. Call cmdOpenDoor_Click
  656. End Sub
  657. Private Sub imgHotmail_Click()
  658. txtAddress.Text = "www.hotMail.com"
  659. Call cmdOpenDoor_Click
  660. End Sub
  661. 'txtAddress.AddItem txtAddress.Text
  662. 'txtAddress.Text = txtAddress
  663. 'End Sub
  664. Private Sub imgOpenDoor_Click()
  665.  txtAddress.AddItem txtAddress.Text
  666.     txtAddress.Text = txtAddress
  667.      WebBrowser1.Navigate txtAddress.Text 'Goes to the website entered in the TextBox
  668. End Sub
  669. Private Sub imgReload_Click()
  670. WebBrowser1.Refresh
  671. End Sub
  672. Private Sub lblSearchit_Click()
  673.    If optYahoo.Value = True Then txtAddress.Text = "www.Yahoo.com"
  674.     If optNetscape.Value = True Then txtAddress.Text = "www.Netscape.com"
  675.     If optLycos.Value = True Then txtAddress.Text = "www.Lycos.com"
  676.     If optexcite.Value = True Then txtAddress.Text = "www.excite.com"
  677.     Call cmdOpenDoor_Click
  678. End Sub
  679. Private Sub imgYahooChat_Click()
  680. txtAddress.Text = "http://login.yahoo.com/?.src=chat&.done=http://chat.yahoo.com/"
  681. Call cmdOpenDoor_Click
  682. End Sub
  683. Private Sub imgYahoomail_Click()
  684. txtAddress.Text = "login.yahoo.com/config/login?.src=ym&.lg=us&.done=http://edit.yahoo.com/config/mail%3f.intl="
  685. Call cmdOpenDoor_Click
  686. End Sub
  687. Private Sub lblExit_Click()
  688. End Sub
  689. Private Sub mnuAboutcom_Click()
  690. txtAddress.Text = "www.About.com"
  691. Call cmdOpenDoor_Click
  692. End Sub
  693. Private Sub mnuAddToFavorites_Click()
  694. FavoriteAddress = txtAddress.Text
  695. Open App.Path + "\Favorites" For Append As #1
  696. Write #1, FavoriteAddress
  697. Close #1
  698. End Sub
  699. Private Sub mnuAltaVista_Click()
  700. txtAddress.Text = "www.altavista.com"
  701. Call cmdOpenDoor_Click
  702. End Sub
  703. Private Sub mnuAskJeeves_Click()
  704. txtAddress.Text = "www.askjeeves.com"
  705. Call cmdOpenDoor_Click
  706. End Sub
  707. Private Sub mnuBack_Click()
  708.     On Error Resume Next
  709.     WebBrowser1.GoBack
  710. End Sub
  711. Private Sub mnuClose_Click()
  712. frmDoorToTheNet.Hide
  713. End Sub
  714. Private Sub mnuCopy_Click()
  715.     Clipboard.Clear
  716. Me.WebBrowser1.ExecWB OLECMDID_COPY, OLECMDEXECOPT_DONTPROMPTUSER
  717.     'Clipboard.SetText = txtAddress.Text
  718. End Sub
  719. Private Sub mnuCut_Click()
  720.     Clipboard.Clear
  721.     Me.WebBrowser1.ExecWB OLECMDID_CUT, OLECMDEXECOPT_DONTPROMPTUSER
  722. End Sub
  723. Private Sub mnuDeleteFavorite_Click()
  724. On Error GoTo errorhandler
  725. Dim favorites(1000)
  726. Open App.Path + "\Favorites" For Input As #1
  727. Do While Not EOF(1)
  728. Input #1, favorites(x)
  729. frmDeleteFavorite.List1.AddItem favorites(x)
  730. x = x + 1
  731. Close #1
  732. frmDeleteFavorite.Show
  733. frmDeleteFavorite.cmdDelete.Enabled = False
  734. errorhandler:
  735.     Exit Sub
  736. End Sub
  737. Private Sub mnuDirectHit_Click()
  738. txtAddress.Text = "www.DirectHit.com"
  739. Call cmdOpenDoor_Click
  740. End Sub
  741. Private Sub mnuDogPile_Click()
  742. txtAddress.Text = "www.Dogpile.com"
  743. Call cmdOpenDoor_Click
  744. End Sub
  745. Private Sub mnuDorWay_Click()
  746. On Error Resume Next
  747. Dim x
  748. x = Shell(App.Path + "\DoorWayToTheNet.exe", vbNormalFocus)
  749. 'When DoorWay Is executeable then open DoorWay Shell
  750. End Sub
  751. Private Sub mnuEdit_Click()
  752.   On Error Resume Next
  753.     If txtAddress.SelText = "" Then
  754.         'mnuCut.Enabled = False
  755.        ' mnuCopy.Enabled = False
  756.     Else
  757.         'mnuCut.Enabled = True
  758.        ' mnuCopy.Enabled = True
  759.     End If
  760.     If Clipboard.GetText() = "" Then
  761.         mnuPaste.Enabled = False
  762.     Else
  763.         mnuPaste.Enabled = True
  764.     End If
  765. End Sub
  766. Private Sub mnuExcite_Click()
  767. txtAddress.Text = "www.excite.com"
  768. Call cmdOpenDoor_Click
  769. End Sub
  770. Private Sub mnuExit_Click()
  771. frmExitDoorWay.Show
  772. End Sub
  773. Private Sub mnuFind_Click()
  774. Me.WebBrowser1.ExecWB OLECMDID_FIND, OLECMDEXECOPT_DONTPROMPTUSER
  775. End Sub
  776. Private Sub mnuFoward_Click()
  777. On Error Resume Next
  778.     WebBrowser1.GoForward
  779. End Sub
  780. Private Sub mnuGoto_Click()
  781. txtAddress.Text = "www.Goto.com"
  782. Call cmdOpenDoor_Click
  783. End Sub
  784. Private Sub mnuHelpOn_Click()
  785.   On Error Resume Next
  786. frmHElp.Show
  787. End Sub
  788. Private Sub mnuHome_Click()
  789. Open App.Path + "\HomePage" For Input As #1
  790. Input #1, homepage
  791. Close #1
  792. On Error Resume Next
  793. txtAddress.Text = homepage
  794. Call cmdOpenDoor_Click
  795. End Sub
  796. Private Sub mnuHotBot_Click()
  797. txtAddress.Text = "www.HotBot.com"
  798. Call cmdOpenDoor_Click
  799. End Sub
  800. Private Sub mnuInfoSeek_Click()
  801. txtAddress.Text = "www.InfoSeek.com"
  802. Call cmdOpenDoor_Click
  803. End Sub
  804. Private Sub mnulookSmart_Click()
  805. txtAddress.Text = "www.LookSmart.com"
  806. Call cmdOpenDoor_Click
  807. End Sub
  808. Private Sub mnuLycos_Click()
  809. txtAddress.Text = "www.Lycos.com"
  810. Call cmdOpenDoor_Click
  811. End Sub
  812. Private Sub mnuMacrosoft_Click()
  813. frmAbout.Show
  814. End Sub
  815. Private Sub mnuMSN_Click()
  816. txtAddress.Text = "www.Msn.com"
  817. Call cmdOpenDoor_Click
  818. End Sub
  819. Private Sub mnuNetscape_Click()
  820. txtAddress.Text = "www.netscape.com"
  821. Call cmdOpenDoor_Click
  822. End Sub
  823. Private Sub mnuOpen_Click()
  824. Dim srtaddress As String
  825. Const conMsg As String = "Enter the address you want to open"
  826. Const contitle As String = "Address Opener"
  827. straddress = InputBox(conMsg, contitle)
  828. txtAddress.Text = straddress
  829. Call cmdOpenDoor_Click
  830. End Sub
  831. Private Sub mnuPaste_Click()
  832.     Me.WebBrowser1.ExecWB OLECMDID_PASTE, OLECMDEXECOPT_DONTPROMPTUSER
  833. End Sub
  834. Private Sub mnuPreferences_Click()
  835. frmPreferences.Show
  836. End Sub
  837. Private Sub mnuPrint_Click()
  838.  Me.WebBrowser1.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER
  839. End Sub
  840. Private Sub mnuRefresh_Click()
  841. WebBrowser1.Refresh2
  842. End Sub
  843. Private Sub mnuReload_Click()
  844. WebBrowser1.Refresh
  845. End Sub
  846. Private Sub mnuSave_Click()
  847.   On Error Resume Next
  848.   Call mnuSaveAs_Click
  849. End Sub
  850. Private Sub mnuSaveAs_Click()
  851.     'Dim intFreeFile As Integer
  852.     'D'im strTempString As String
  853.     'Dim strLocation As String 'path of HTML file to save local
  854.    ' intFreeFile = FreeFile
  855.  address = txtAddress.Text
  856. On Error GoTo savehandler
  857.  ' Call mnuViewSource_Click
  858. dlgEdit.Flags = cd10fnoverwriteprompt + cdlOFNPathMustExist
  859. dlgEdit.Filter = "HTML Files(*.html)|*.html"
  860. dlgEdit.ShowSave
  861.     Open dlgEdit.FileName For Output As #1
  862.     Print #1, WebBrowser1.Document
  863.     Close #1
  864.   'Open dlgEdit.FileName For Output As #intFreeFile
  865.   '          Print #intFreeFile, frmHtmlSource.Text1.Text
  866.   'Close #intFreeFile
  867.     blnChange = False
  868.     Exit Sub
  869. savehandler:
  870.     blnCancelSave = True
  871.     Exit Sub
  872. End Sub
  873. Private Sub mnuSelectall_Click()
  874. Clipboard.Clear
  875. Me.WebBrowser1.ExecWB OLECMDID_SELECTALL, OLECMDEXECOPT_DONTPROMPTUSER
  876. End Sub
  877. Private Sub mnuSmfSearchengine_Click()
  878. On Error Resume Next
  879. Dim search
  880. search = Shell(App.Path + "\SMF Search engine.exe", vbNormalFocus)
  881. End Sub
  882. Private Sub mnuthunderstone_Click()
  883. txtAddress.Text = "www.thunderstone.com"
  884. Call cmdOpenDoor_Click
  885. End Sub
  886. Private Sub mnuViewFavorites_Click()
  887. On Error GoTo errorhandler
  888. FrmFavorites.List1.Clear
  889. Dim favorites(1000)
  890. Open App.Path + "\Favorites" For Input As #1
  891. Do While Not EOF(1)
  892. Input #1, favorites(x)
  893. FrmFavorites.List1.AddItem favorites(x)
  894. x = x + 1
  895. Close #1
  896. FrmFavorites.Show
  897. FrmFavorites.cmdGotoFavorite.Enabled = False
  898. errorhandler:
  899.     Exit Sub
  900. End Sub
  901. Private Sub mnuViewSource_Click()
  902. On Error Resume Next
  903. 'frmHtmlSource.Text1.Text = getsourcecode(txtAddress.Text)
  904.  Dim strTempData As String
  905.     With Inet1
  906.         .AccessType = icUseDefault
  907.         frmHtmlSource.Text1 = .OpenURL(txtAddress.Text)
  908.     End With
  909. frmHtmlSource.Show
  910. End Sub
  911. Function getsourcecode(URL As String) As String
  912.     getsourcecode = Inet1.OpenURL(URL)
  913. End Function
  914. Private Sub mnuYahoo_Click()
  915. txtAddress.Text = "www.yahoo.com"
  916. Call cmdOpenDoor_Click
  917. End Sub
  918. '--------------------------------------------------------------------------------
  919. Private Sub optexcite_dblClick()
  920.     lblSearchit.Caption = "Search On Excite!"
  921.     lblSearchit.ToolTipText = "Search Excite Search Engine"
  922.     txtAddress.Text = "www.Excite.com"
  923.     lblSearchit.ToolTipText = "Search Excite Search Engine"
  924.     Call cmdOpenDoor_Click
  925. End Sub
  926. Private Sub optexcite_Click()
  927.     lblSearchit.Caption = "Search On Excite!"
  928.     lblSearchit.ToolTipText = "Search Excite Search Engine"
  929. End Sub
  930. '-------------------------------------------------------------------------------
  931. Private Sub optLycos_dblClick()
  932.     lblSearchit.Caption = "Search On Lycos!"
  933.     lblSearchit.ToolTipText = "Search Lycos Search Engine"
  934.     txtAddress.Text = "www.Lycos.com"
  935.     lblSearchit.ToolTipText = "Search Lycos Search Engine"
  936.     Call cmdOpenDoor_Click
  937. End Sub
  938. Private Sub optLycos_Click()
  939.     lblSearchit.Caption = "Search On Lycos!"
  940.     lblSearchit.ToolTipText = "Search Lycos Search Engine"
  941. End Sub
  942. '-------------------------------------------------------------------------------
  943. Private Sub optNetscape_dblClick()
  944.     lblSearchit.Caption = "Search On Netscape!"
  945.     lblSearchit.ToolTipText = "Search Netscape Search Engine"
  946.     txtAddress.Text = "www.Netscape.com"
  947.     lblSearchit.ToolTipText = "Search Netscape Search Engine"
  948.     Call cmdOpenDoor_Click
  949. End Sub
  950. Private Sub optNetscape_Click()
  951.     lblSearchit.Caption = "Search On Netscape!"
  952.     lblSearchit.ToolTipText = "Search Netscape Search Engine"
  953. End Sub
  954. '----------------------------------------------------------------------
  955. Private Sub optYahoo_dblClick()
  956.     lblSearchit.Caption = "Search On Yahoo!"
  957.     lblSearchit.ToolTipText = "Search Yahoo Search Engine"
  958.     txtAddress.Text = "www.yahoo.com"
  959.     lblSearchit.ToolTipText = "Search Yahoo Search Engine"
  960.     Call cmdOpenDoor_Click
  961. End Sub
  962. Private Sub optYahoo_Click()
  963.     lblSearchit.Caption = "Search On Yahoo!"
  964.     lblSearchit.ToolTipText = "Search Yahoo Search Engine"
  965. End Sub
  966. '----------------------------------------------------------------------
  967. Private Sub ProgressBar2_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
  968. End Sub
  969. Private Sub tmrWinClass_Timer()
  970. '  Dim recentsites(1000)
  971. '  Open app.path+"\recent" For Append As #1
  972. '    Do While Not EOF(1)
  973. '        Input #1, recentsites(rs)
  974. '        txtAddress.AddItem recentsites(rs)
  975. '        rs = rs + 1
  976. '    Loop
  977. '        Close #1
  978.             
  979. End Sub
  980. Private Sub txtAddress_Click()
  981. rownumber = txtAddress.ListIndex
  982. txtAddress.Text = txtAddress.List(rownumber)
  983. WebBrowser1.Navigate txtAddress.Text
  984. End Sub
  985. Private Sub txtAddress_GotFocus()
  986. imgOpenDoor.BorderStyle = 0
  987. End Sub
  988. Private Sub txtAddress_KeyPress(KeyAscii As Integer)
  989.   rs = 0
  990.     On Error Resume Next
  991. If KeyAscii = vbKeyReturn Then
  992.     Do Until rs = 100
  993.         recentsites = txtAddress.List(rs)
  994.             If txtAddress.Text = recentsites Then
  995.                 txtAddress.Text = txtAddress
  996.                 WebBrowser1.Navigate txtAddress.Text
  997.             Exit Sub ': imgOpenDoor_Click
  998.             End If
  999.         rs = rs + 1
  1000.     Loop
  1001.   recentsites = txtAddress.Text
  1002.     Open App.Path + "\recent" For Append As #1
  1003.         Write #1, recentsites
  1004.     Close #1
  1005. imgOpenDoor_Click
  1006. End If
  1007. 'WebBrowser1.Navigate txtAddress.Text
  1008. End Sub
  1009. Private Sub WebBrowser1_GotFocus()
  1010. imgOpenDoor.BorderStyle = 0
  1011. End Sub
  1012. 'Private Sub WebBrowser1_ProgressChange(ByVal Progress As Long, ByVal ProgressMax As Long)
  1013. 'Static x
  1014. 'x = x + 1
  1015. 'If Progress > ProgressMax Then Progress = ProgressMax
  1016. 'If Progress < ProgressBar1.Max Then
  1017. '    ProgressBar1.Max = ProgressMax
  1018. '    ProgressBar1.Value = Progress + 1
  1019. 'Else
  1020. '    ProgressBar1.Max = Progress
  1021. '    ProgressBar1.Value = ProgressBar1.Value
  1022. '    End If
  1023. 'If ProgressBar1.Max > Progress Then ProgressBar1.Value = Progress + 1
  1024. 'Text1.Text = Progress
  1025. 'Text2.Text = ProgressMax
  1026. 'If Progress <> -1 And ProgressBar1.Max > Progress Then ProgressBar1.Value = Progress
  1027. 'End Sub
  1028. Private Sub WebBrowser1_ProgressChange(ByVal progress As Long, ByVal ProgressMax As Long)
  1029. 'On Error GoTo progressERR
  1030. 'PBar.Max = progress + 10000
  1031. If progress = -1 Then Exit Sub
  1032. If ProgressMax = 0 Then Exit Sub
  1033. If progress > ProgressMax Then Exit Sub
  1034. PBar.Max = ProgressMax
  1035. PBar.Value = progress
  1036. If progress >= ProgressMax Then WebBrowser1.Stop
  1037. Label2.Caption = Str$(progress) & "%"
  1038. '    Exit Sub
  1039. 'progressERR:
  1040. End Sub
  1041.  Private Sub WebBrowser1_StatusTextChange(ByVal Text As String)
  1042.        txtStatus.Text = Text
  1043.    txtAddress.Text = WebBrowser1.LocationURL
  1044.   ' Do Until txtAddress.Text = "Done"
  1045.    ' ImgExitDoor.Visible = False
  1046.     'ImgExitDoor.Visible = True
  1047.    ' Loop
  1048.    End Sub
  1049. Private Sub cmdOpenDoor_Click()
  1050.         'txtAddress.AddItem txtAddress.Text
  1051.     'txtAddress.Text = txtAddress
  1052.      WebBrowser1.Navigate txtAddress.Text 'Goes to the website entered in the TextBox
  1053. End Sub
  1054.                                   
  1055. Private Sub WebBrowser1_BeforeNavigate(ByVal URL As Variant, ByVal Cancel As Boolean)
  1056.     txtAddress.AddItem URL
  1057. End Sub
  1058. Private Sub imgExit_Click()
  1059. WebBrowser1.Stop
  1060. End Sub
  1061. Private Sub Form_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  1062.     lblSearchit.BorderStyle = 0
  1063.     imgBack.BorderStyle = 0
  1064.     imgfoward.BorderStyle = 0
  1065.     imgExit.BorderStyle = 0
  1066.     imgHome.BorderStyle = 0
  1067.     imgYahoomail.BorderStyle = 0
  1068.     imgYahooChat.BorderStyle = 0
  1069.     imgHotmail.BorderStyle = 0
  1070.     imgReload.BorderStyle = 0
  1071.     imgHotmail.BorderStyle = 0
  1072.     imgConnect.BorderStyle = 0
  1073.     ImgExitDoor.BorderStyle = 0
  1074.     imgOpenDoor.BorderStyle = 0
  1075. End Sub
  1076. Private Sub imgConnect_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  1077.     imgConnect.BorderStyle = 1
  1078. End Sub
  1079. Private Sub imgReload_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  1080.     imgReload.BorderStyle = 1
  1081.     imgBack.BorderStyle = 0
  1082.     imgfoward.BorderStyle = 0
  1083.     imgExit.BorderStyle = 0
  1084.     imgHome.BorderStyle = 0
  1085.     imgYahoomail.BorderStyle = 0
  1086.     imgYahooChat.BorderStyle = 0
  1087.     imgHotmail.BorderStyle = 0
  1088.     imgHotmail.BorderStyle = 0
  1089.     imgOpenDoor.BorderStyle = 0
  1090. End Sub
  1091. Private Sub imgYahooChat_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  1092.     imgYahooChat.BorderStyle = 1
  1093.     imgBack.BorderStyle = 0
  1094.     imgfoward.BorderStyle = 0
  1095.     imgExit.BorderStyle = 0
  1096.     imgHome.BorderStyle = 0
  1097.     imgYahoomail.BorderStyle = 0
  1098.     imgHotmail.BorderStyle = 0
  1099.     imgReload.BorderStyle = 0
  1100.     imgHotmail.BorderStyle = 0
  1101.     imgOpenDoor.BorderStyle = 0
  1102. End Sub
  1103. Private Sub imgYahoomail_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  1104.     imgYahoomail.BorderStyle = 1
  1105.     imgBack.BorderStyle = 0
  1106.     imgfoward.BorderStyle = 0
  1107.     imgExit.BorderStyle = 0
  1108.     imgHome.BorderStyle = 0
  1109.     imgYahooChat.BorderStyle = 0
  1110.     imgHotmail.BorderStyle = 0
  1111.     imgReload.BorderStyle = 0
  1112.     imgHotmail.BorderStyle = 0
  1113.     imgOpenDoor.BorderStyle = 0
  1114. End Sub
  1115. Private Sub imgBack_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  1116.     imgBack.BorderStyle = 1
  1117.     imgfoward.BorderStyle = 0
  1118.     imgExit.BorderStyle = 0
  1119.     imgHome.BorderStyle = 0
  1120.     imgYahoomail.BorderStyle = 0
  1121.     imgYahooChat.BorderStyle = 0
  1122.     imgHotmail.BorderStyle = 0
  1123.     imgReload.BorderStyle = 0
  1124.     imgHotmail.BorderStyle = 0
  1125.     imgOpenDoor.BorderStyle = 0
  1126. End Sub
  1127. Private Sub imgExit_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  1128.     imgExit.BorderStyle = 1
  1129.     imgBack.BorderStyle = 0
  1130.     imgfoward.BorderStyle = 0
  1131.     imgHome.BorderStyle = 0
  1132.     imgYahoomail.BorderStyle = 0
  1133.     imgYahooChat.BorderStyle = 0
  1134.     imgHotmail.BorderStyle = 0
  1135.     imgReload.BorderStyle = 0
  1136.     imgHotmail.BorderStyle = 0
  1137.     imgOpenDoor.BorderStyle = 0
  1138. End Sub
  1139. Private Sub imgfoward_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  1140.     imgfoward.BorderStyle = 1
  1141.     imgBack.BorderStyle = 0
  1142.     imgExit.BorderStyle = 0
  1143.     imgHome.BorderStyle = 0
  1144.     imgYahoomail.BorderStyle = 0
  1145.     imgYahooChat.BorderStyle = 0
  1146.     imgHotmail.BorderStyle = 0
  1147.     imgReload.BorderStyle = 0
  1148.     imgHotmail.BorderStyle = 0
  1149.     imgOpenDoor.BorderStyle = 0
  1150. End Sub
  1151. Private Sub imgHome_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  1152.     imgHome.BorderStyle = 1
  1153.     imgBack.BorderStyle = 0
  1154.     imgfoward.BorderStyle = 0
  1155.     imgExit.BorderStyle = 0
  1156.     imgYahoomail.BorderStyle = 0
  1157.     imgYahooChat.BorderStyle = 0
  1158.     imgHotmail.BorderStyle = 0
  1159.     imgReload.BorderStyle = 0
  1160.     imgHotmail.BorderStyle = 0
  1161.     imgOpenDoor.BorderStyle = 0
  1162. End Sub
  1163. Private Sub imgHotmail_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  1164.     imgHotmail.BorderStyle = 1
  1165.     imgBack.BorderStyle = 0
  1166.     imgfoward.BorderStyle = 0
  1167.     imgExit.BorderStyle = 0
  1168.     imgHome.BorderStyle = 0
  1169.     imgYahoomail.BorderStyle = 0
  1170.     imgYahooChat.BorderStyle = 0
  1171.     imgReload.BorderStyle = 0
  1172.     imgOpenDoor.BorderStyle = 0
  1173. End Sub
  1174. Private Sub ImgExitDoor_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  1175. ImgExitDoor.BorderStyle = 1
  1176. lblSearchit.BorderStyle = 0
  1177. imgOpenDoor.BorderStyle = 0
  1178. End Sub
  1179. Private Sub imgOpenDoor_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  1180.     imgOpenDoor.BorderStyle = 1
  1181.     imgBack.BorderStyle = 0
  1182.     imgfoward.BorderStyle = 0
  1183.     imgExit.BorderStyle = 0
  1184.     imgHome.BorderStyle = 0
  1185.     imgYahoomail.BorderStyle = 0
  1186.     imgHotmail.BorderStyle = 0
  1187.     imgReload.BorderStyle = 0
  1188.     imgHotmail.BorderStyle = 0
  1189.     lblSearchit.BorderStyle = 0
  1190. End Sub
  1191. Private Sub lblSearchit_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  1192. lblSearchit.BorderStyle = 1
  1193. imgOpenDoor.BorderStyle = 0
  1194. imgOpenDoor.BorderStyle = 0
  1195. End Sub
  1196. 'Code For Bouncing Exit-----------------------------------
  1197. Private Sub Form_Unload(Cancel As Integer)
  1198. frmDoorToTheNet.Caption = "Now Closing The DoorWay To The Net"
  1199.        If Me.WindowState <> 0 Then
  1200.            Me.WindowState = 0
  1201.        End If
  1202.        Cancel = -1
  1203.        Dim HeightOfStartMenu As Long
  1204.        Dim Speed As Long
  1205.        Dim StartAt As Long
  1206.        For i = 1 To 999 '// The start menu never uses a HWND higher than 1000
  1207.            z$ = Space$(128)
  1208.            y = GetClassName(i, z$, 128)
  1209.            x = Left$(z$, y)
  1210.            If LCase(x) = "shell_traywnd" Then
  1211.                GoTo JumpOut:
  1212.            End If
  1213.        Next i
  1214. JumpOut:
  1215.        GetWindowRect i, What
  1216.        '// Get the top pos of the Start Menu
  1217.        HeightOfStartMenu = What.Top + 8300
  1218.        If HeightOfStartMenu <= 0 Then
  1219.            HeightOfStartMenu = Screen.Height
  1220.            '// If some smart guy moves the start-menu, to say
  1221.            '// the top, left or right bounce at the bottom of
  1222.            '// the screen
  1223.        End If
  1224.        '// Turn the value into twips (more commonly used)
  1225.        StartAt = HeightOfStartMenu - 4000
  1226.        If StartAt < Me.Top Then
  1227.            StartAt = Me.Top
  1228.            '// This code prevents the form from bouncing
  1229.            '// higher than itself (not logical, the start menu isn't made
  1230.            '// of rubber you now)
  1231.        End If
  1232.        '// How many "bounces?"
  1233.        Speed = 60
  1234.        '// How fast should this go?
  1235.        'Me.Height = 0
  1236.        'Me.Width = 4000
  1237.          num = 1
  1238. 'Width = 10920
  1239.    For i = 0 To Me.Height
  1240.        Me.Height = Me.Height - num
  1241.        DoEvents
  1242.        Next i
  1243.        For i = 0 To 5900
  1244.            Me.Width = Me.Width - num
  1245.            DoEvents
  1246.            Next i
  1247.      For i = 0 To 500
  1248.         Me.Top = Me.Top + num
  1249.         DoEvents
  1250.         Next i
  1251.     For i = 0 To 12000
  1252.         Me.Left = Me.Left + num
  1253.         DoEvents
  1254.         Next i
  1255. End Sub
  1256. Private Sub form_linkclose()
  1257. GoAgain:
  1258.        Do Until Me.Top >= HeightOfStartMenu
  1259.            DoEvents
  1260.                Me.Top = Me.Top + Speed
  1261.                Me.Left = Me.Left + 15 '<--- Remove the " ' " to make the window bounce sideways!
  1262.            Loop
  1263.            Do Until Me.Top <= StartAt
  1264.                DoEvents
  1265.                    Me.Top = Me.Top - Speed
  1266.                    Me.Left = Me.Left + 15 '<--- Remove the " ' " to make the window bounce sideways!
  1267.                Loop
  1268.                If StartAt >= 10000 And Me.Top >= HeightOfStartMenu Then
  1269.                    Do Until Me.Top >= HeightOfStartMenu + 15000
  1270.                        Me.Top = Me.Top + Speed
  1271.                    Loop
  1272.                    End
  1273.                    Exit Sub
  1274.                End If
  1275.                StartAt = StartAt + 1000
  1276.                Speed = Speed - 5
  1277.                '// Decrease speed with 5 after each "bounce",
  1278.                '// You can change the value all ya want :)
  1279.                If Speed <= 0 Then
  1280.                    Speed = 5
  1281.                    '// If the Speed value gets under zero i will
  1282.                    '// automatically turn into 5 (cause if it don't
  1283.                    '// It will stop or do something crazy
  1284.                End If
  1285.                GoTo GoAgain:
  1286.            End Sub
  1287.