home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / smfdoor / frmdoort.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1999-09-11  |  41.6 KB  |  1,329 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        =   0
  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        =   5
  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        =   4
  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        =   3
  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        =   2
  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        =   1
  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        =   6
  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. On Error Resume Next
  580. Open App.Path + "\StartUpScroll" For Input As #1
  581.         Input #1, opeaningscroll
  582.     Close #1
  583.     If opeaningscroll = 1 Then Call skipscroll: Exit Sub
  584. mnuFind.Enabled = False
  585. mnuFindNext = False
  586. Me.Caption = "Now Opening the Doorway to the Internet"
  587. Do Until Me.Left <= 0
  588.     If Left > 12000 Then Me.Width = Me.Width + 1
  589.     Me.Left = Me.Left - 1
  590.     DoEvents
  591.     Do Until Me.Top <= 0
  592.        Me.Top = Me.Top - 1
  593.     Loop
  594.     Do Until Me.Height >= 9000
  595.     Me.Height = Me.Height + 1
  596.     Me.Caption = "SMF Doorway to the Internet"
  597. Exit Sub
  598. End Sub
  599. Public Sub skipscroll():
  600.             Me.Height = 8700
  601.             Me.Left = 0
  602.             Me.Width = 10650
  603.             Me.Top = 0
  604.             Me.Caption = "SMF Doorway to the Internet"
  605. End Sub
  606. Public Sub skipEndscroll():
  607.             Me.Height = 0
  608.             Me.Left = 0
  609.             Me.Width = 0
  610.             Me.Top = 0
  611.             Me.Caption = "SMF Doorway to the Internet"
  612. End Sub
  613. Private Sub Form_Click()
  614.             Me.Height = 8700
  615.             Me.Left = 0
  616.             Me.Width = 10650
  617.             Me.Top = 0
  618.             Me.Caption = "SMF Doorway to the Internet"
  619. End Sub
  620. Private Sub Form_GotFocus()
  621. Do Until Me.Left <= 0
  622.     Me.Width = Me.Width + 1
  623.     Me.Left = Me.Left - 1
  624.     DoEvents
  625.     Do Until Me.Height >= 8700
  626.     Me.Height = Me.Height + 1
  627.     Loop
  628. End Sub
  629. Private Sub Form_Load()
  630. rs = 0
  631. 'txtAddress.Clear
  632. Dim recentsites(1000) As String
  633. Open App.Path + "\recent" For Input As #1
  634. Do While Not EOF(1)
  635. Input #1, recentsites(rs)
  636. txtAddress.AddItem recentsites(rs)
  637. rs = rs + 1
  638. Close #1
  639. Open App.Path + "\Favorites" For Append As #1
  640. Close #1
  641. On Error Resume Next
  642. Dim rln
  643. rln = Shell("C:\rln95\rlnuserw.exe")
  644. frmDoorToTheNet.Left = 0
  645. 'frmDoorToTheNet.Width = 1000
  646. frmDoorToTheNet.Height = 0
  647. Me.Top = 500
  648. Me.Left = 12000
  649. Open App.Path + "\HomePage" For Input As #1
  650. Input #1, homepage
  651. Close #1
  652. txtAddress.Text = homepage
  653. WebBrowser1.Navigate txtAddress.Text
  654. imgHome.ToolTipText = homepage
  655. End Sub
  656. Private Sub cmdHotMail_Click()
  657. txtAddress.Text = "www.Hotmail.com"
  658. Call cmdOpenDoor_Click
  659. End Sub
  660. Private Sub Form_LostFocus()
  661.  Me.Height = 8700
  662.             Me.Left = 0
  663.             Me.Width = 10650
  664.             Me.Top = 0
  665.             Me.Caption = "SMF Doorway to the Internet"
  666. End Sub
  667. Private Sub imgBack_Click()
  668.    On Error Resume Next
  669. WebBrowser1.GoBack
  670. End Sub
  671. Private Sub imgConnect_Click()
  672. On Error Resume Next
  673. Dim x
  674. x = Shell("C:\rln95\rlnuserw.exe")
  675. End Sub
  676. Private Sub ImgExitDoor_Click()
  677.   'txtAddress.Text = WebBrowser1.Document
  678.   On Error Resume Next
  679. frmExitDoorWay.Show
  680. End Sub
  681. Private Sub imgfoward_Click()
  682.   On Error Resume Next
  683.     WebBrowser1.GoForward
  684. End Sub
  685. Private Sub imgHome_Click()
  686. Open App.Path + "\HomePage" For Input As #1
  687. Input #1, homepage
  688. Close #1
  689. On Error Resume Next
  690. txtAddress.Text = homepage
  691. Call cmdOpenDoor_Click
  692. End Sub
  693. Private Sub imgHotmail_Click()
  694. txtAddress.Text = "www.hotMail.com"
  695. Call cmdOpenDoor_Click
  696. End Sub
  697. 'txtAddress.AddItem txtAddress.Text
  698. 'txtAddress.Text = txtAddress
  699. 'End Sub
  700. Private Sub imgOpenDoor_Click()
  701.  txtAddress.AddItem txtAddress.Text
  702.     txtAddress.Text = txtAddress
  703.      WebBrowser1.Navigate txtAddress.Text 'Goes to the website entered in the TextBox
  704. End Sub
  705. Private Sub imgReload_Click()
  706. WebBrowser1.Refresh
  707. End Sub
  708. Private Sub lblSearchit_Click()
  709.    If optYahoo.Value = True Then txtAddress.Text = "www.Yahoo.com"
  710.     If optNetscape.Value = True Then txtAddress.Text = "www.Netscape.com"
  711.     If optLycos.Value = True Then txtAddress.Text = "www.Lycos.com"
  712.     If optexcite.Value = True Then txtAddress.Text = "www.excite.com"
  713.     Call cmdOpenDoor_Click
  714. End Sub
  715. Private Sub imgYahooChat_Click()
  716. txtAddress.Text = "http://login.yahoo.com/?.src=chat&.done=http://chat.yahoo.com/"
  717. Call cmdOpenDoor_Click
  718. End Sub
  719. Private Sub imgYahoomail_Click()
  720. txtAddress.Text = "login.yahoo.com/config/login?.src=ym&.lg=us&.done=http://edit.yahoo.com/config/mail%3f.intl="
  721. Call cmdOpenDoor_Click
  722. End Sub
  723. Private Sub lblExit_Click()
  724. End Sub
  725. Private Sub mnuAboutcom_Click()
  726. txtAddress.Text = "www.About.com"
  727. Call cmdOpenDoor_Click
  728. End Sub
  729. Private Sub mnuAddToFavorites_Click()
  730. FavoriteAddress = txtAddress.Text
  731. Open App.Path + "\Favorites" For Append As #1
  732. Write #1, FavoriteAddress
  733. Close #1
  734. End Sub
  735. Private Sub mnuAltaVista_Click()
  736. txtAddress.Text = "www.altavista.com"
  737. Call cmdOpenDoor_Click
  738. End Sub
  739. Private Sub mnuAskJeeves_Click()
  740. txtAddress.Text = "www.askjeeves.com"
  741. Call cmdOpenDoor_Click
  742. End Sub
  743. Private Sub mnuBack_Click()
  744.     On Error Resume Next
  745.     WebBrowser1.GoBack
  746. End Sub
  747. Private Sub mnuClose_Click()
  748. frmDoorToTheNet.Hide
  749. End Sub
  750. Private Sub mnuCopy_Click()
  751.     Clipboard.Clear
  752. Me.WebBrowser1.ExecWB OLECMDID_COPY, OLECMDEXECOPT_DONTPROMPTUSER
  753.     'Clipboard.SetText = txtAddress.Text
  754. End Sub
  755. Private Sub mnuCut_Click()
  756.     Clipboard.Clear
  757.     Me.WebBrowser1.ExecWB OLECMDID_CUT, OLECMDEXECOPT_DONTPROMPTUSER
  758. End Sub
  759. Private Sub mnuDeleteFavorite_Click()
  760. frmDeleteFavorite.Show
  761. frmDeleteFavorite.cmdDelete.Enabled = False
  762. errorhandler:
  763.     Exit Sub
  764. End Sub
  765. Private Sub mnuDirectHit_Click()
  766. txtAddress.Text = "www.DirectHit.com"
  767. Call cmdOpenDoor_Click
  768. End Sub
  769. Private Sub mnuDogPile_Click()
  770. txtAddress.Text = "www.Dogpile.com"
  771. Call cmdOpenDoor_Click
  772. End Sub
  773. Private Sub mnuDorWay_Click()
  774. On Error Resume Next
  775. Dim x
  776. x = Shell(App.Path + "\DoorWayToTheNet.exe", vbNormalFocus)
  777. 'When DoorWay Is executeable then open DoorWay Shell
  778. End Sub
  779. Private Sub mnuEdit_Click()
  780.   On Error Resume Next
  781.     If txtAddress.SelText = "" Then
  782.         'mnuCut.Enabled = False
  783.        ' mnuCopy.Enabled = False
  784.     Else
  785.         'mnuCut.Enabled = True
  786.        ' mnuCopy.Enabled = True
  787.     End If
  788.     If Clipboard.GetText() = "" Then
  789.         mnuPaste.Enabled = False
  790.     Else
  791.         mnuPaste.Enabled = True
  792.     End If
  793. End Sub
  794. Private Sub mnuExcite_Click()
  795. txtAddress.Text = "www.excite.com"
  796. Call cmdOpenDoor_Click
  797. End Sub
  798. Private Sub mnuExit_Click()
  799. frmExitDoorWay.Show
  800. End Sub
  801. Private Sub mnuFind_Click()
  802. Me.WebBrowser1.ExecWB OLECMDID_FIND, OLECMDEXECOPT_DONTPROMPTUSER
  803. End Sub
  804. Private Sub mnuFoward_Click()
  805. On Error Resume Next
  806.     WebBrowser1.GoForward
  807. End Sub
  808. Private Sub mnuGoto_Click()
  809. txtAddress.Text = "www.Goto.com"
  810. Call cmdOpenDoor_Click
  811. End Sub
  812. Private Sub mnuHelpOn_Click()
  813.   On Error Resume Next
  814. frmHElp.Show
  815. End Sub
  816. Private Sub mnuHome_Click()
  817. Open App.Path + "\HomePage" For Input As #1
  818. Input #1, homepage
  819. Close #1
  820. On Error Resume Next
  821. txtAddress.Text = homepage
  822. Call cmdOpenDoor_Click
  823. End Sub
  824. Private Sub mnuHotBot_Click()
  825. txtAddress.Text = "www.HotBot.com"
  826. Call cmdOpenDoor_Click
  827. End Sub
  828. Private Sub mnuInfoSeek_Click()
  829. txtAddress.Text = "www.InfoSeek.com"
  830. Call cmdOpenDoor_Click
  831. End Sub
  832. Private Sub mnulookSmart_Click()
  833. txtAddress.Text = "www.LookSmart.com"
  834. Call cmdOpenDoor_Click
  835. End Sub
  836. Private Sub mnuLycos_Click()
  837. txtAddress.Text = "www.Lycos.com"
  838. Call cmdOpenDoor_Click
  839. End Sub
  840. Private Sub mnuMacrosoft_Click()
  841. frmAbout.Show
  842. End Sub
  843. Private Sub mnuMSN_Click()
  844. txtAddress.Text = "www.Msn.com"
  845. Call cmdOpenDoor_Click
  846. End Sub
  847. Private Sub mnuNetscape_Click()
  848. txtAddress.Text = "www.netscape.com"
  849. Call cmdOpenDoor_Click
  850. End Sub
  851. Private Sub mnuOpen_Click()
  852. Dim srtaddress As String
  853. Const conMsg As String = "Enter the address you want to open"
  854. Const contitle As String = "Address Opener"
  855. straddress = InputBox(conMsg, contitle)
  856. txtAddress.Text = straddress
  857. Call cmdOpenDoor_Click
  858. End Sub
  859. Private Sub mnuPaste_Click()
  860.     Me.WebBrowser1.ExecWB OLECMDID_PASTE, OLECMDEXECOPT_DONTPROMPTUSER
  861. End Sub
  862. Private Sub mnuPreferences_Click()
  863. frmPreferences.Show
  864. End Sub
  865. Private Sub mnuPrint_Click()
  866.  Me.WebBrowser1.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER
  867. End Sub
  868. Private Sub mnuRefresh_Click()
  869. WebBrowser1.Refresh2
  870. End Sub
  871. Private Sub mnuReload_Click()
  872. WebBrowser1.Refresh
  873. End Sub
  874. Private Sub mnuSave_Click()
  875.   On Error Resume Next
  876.   Call mnuSaveAs_Click
  877. End Sub
  878. Private Sub mnuSaveAs_Click()
  879.     'Dim intFreeFile As Integer
  880.     'D'im strTempString As String
  881.     'Dim strLocation As String 'path of HTML file to save local
  882.    ' intFreeFile = FreeFile
  883.  address = txtAddress.Text
  884. On Error GoTo savehandler
  885.  ' Call mnuViewSource_Click
  886. dlgEdit.Flags = cd10fnoverwriteprompt + cdlOFNPathMustExist
  887. dlgEdit.Filter = "HTML Files(*.html)|*.html"
  888. dlgEdit.ShowSave
  889.     Open dlgEdit.FileName For Output As #1
  890.     Print #1, WebBrowser1.Document
  891.     Close #1
  892.   'Open dlgEdit.FileName For Output As #intFreeFile
  893.   '          Print #intFreeFile, frmHtmlSource.Text1.Text
  894.   'Close #intFreeFile
  895.     blnChange = False
  896.     Exit Sub
  897. savehandler:
  898.     blnCancelSave = True
  899.     Exit Sub
  900. End Sub
  901. Private Sub mnuSelectall_Click()
  902. Clipboard.Clear
  903. Me.WebBrowser1.ExecWB OLECMDID_SELECTALL, OLECMDEXECOPT_DONTPROMPTUSER
  904. End Sub
  905. Private Sub mnuSmfSearchengine_Click()
  906. On Error Resume Next
  907. Dim search
  908. search = Shell(App.Path + "\SMF Search engine.exe", vbNormalFocus)
  909. End Sub
  910. Private Sub mnuthunderstone_Click()
  911. txtAddress.Text = "www.thunderstone.com"
  912. Call cmdOpenDoor_Click
  913. End Sub
  914. Private Sub mnuViewFavorites_Click()
  915. On Error GoTo errorhandler
  916. FrmFavorites.List1.Clear
  917. Dim favorites(1000)
  918. Open App.Path + "\Favorites" For Input As #1
  919. Do While Not EOF(1)
  920. Input #1, favorites(x)
  921. FrmFavorites.List1.AddItem favorites(x)
  922. x = x + 1
  923. Close #1
  924. FrmFavorites.Show
  925. FrmFavorites.cmdGotoFavorite.Enabled = False
  926. errorhandler:
  927.     Exit Sub
  928. End Sub
  929. Private Sub mnuViewSource_Click()
  930. On Error Resume Next
  931. 'frmHtmlSource.Text1.Text = getsourcecode(txtAddress.Text)
  932.  Dim strTempData As String
  933.     With Inet1
  934.         .AccessType = icUseDefault
  935.         frmHtmlSource.Text1 = .OpenURL(txtAddress.Text)
  936.     End With
  937. frmHtmlSource.Show
  938. End Sub
  939. Function getsourcecode(URL As String) As String
  940.     getsourcecode = Inet1.OpenURL(URL)
  941. End Function
  942. Private Sub mnuYahoo_Click()
  943. txtAddress.Text = "www.yahoo.com"
  944. Call cmdOpenDoor_Click
  945. End Sub
  946. '--------------------------------------------------------------------------------
  947. Private Sub optexcite_dblClick()
  948.     lblSearchit.Caption = "Search On Excite!"
  949.     lblSearchit.ToolTipText = "Search Excite Search Engine"
  950.     txtAddress.Text = "www.Excite.com"
  951.     lblSearchit.ToolTipText = "Search Excite Search Engine"
  952.     Call cmdOpenDoor_Click
  953. End Sub
  954. Private Sub optexcite_Click()
  955.     lblSearchit.Caption = "Search On Excite!"
  956.     lblSearchit.ToolTipText = "Search Excite Search Engine"
  957. End Sub
  958. '-------------------------------------------------------------------------------
  959. Private Sub optLycos_dblClick()
  960.     lblSearchit.Caption = "Search On Lycos!"
  961.     lblSearchit.ToolTipText = "Search Lycos Search Engine"
  962.     txtAddress.Text = "www.Lycos.com"
  963.     lblSearchit.ToolTipText = "Search Lycos Search Engine"
  964.     Call cmdOpenDoor_Click
  965. End Sub
  966. Private Sub optLycos_Click()
  967.     lblSearchit.Caption = "Search On Lycos!"
  968.     lblSearchit.ToolTipText = "Search Lycos Search Engine"
  969. End Sub
  970. '-------------------------------------------------------------------------------
  971. Private Sub optNetscape_dblClick()
  972.     lblSearchit.Caption = "Search On Netscape!"
  973.     lblSearchit.ToolTipText = "Search Netscape Search Engine"
  974.     txtAddress.Text = "www.Netscape.com"
  975.     lblSearchit.ToolTipText = "Search Netscape Search Engine"
  976.     Call cmdOpenDoor_Click
  977. End Sub
  978. Private Sub optNetscape_Click()
  979.     lblSearchit.Caption = "Search On Netscape!"
  980.     lblSearchit.ToolTipText = "Search Netscape Search Engine"
  981. End Sub
  982. '----------------------------------------------------------------------
  983. Private Sub optYahoo_dblClick()
  984.     lblSearchit.Caption = "Search On Yahoo!"
  985.     lblSearchit.ToolTipText = "Search Yahoo Search Engine"
  986.     txtAddress.Text = "www.yahoo.com"
  987.     lblSearchit.ToolTipText = "Search Yahoo Search Engine"
  988.     Call cmdOpenDoor_Click
  989. End Sub
  990. Private Sub optYahoo_Click()
  991.     lblSearchit.Caption = "Search On Yahoo!"
  992.     lblSearchit.ToolTipText = "Search Yahoo Search Engine"
  993. End Sub
  994. '----------------------------------------------------------------------
  995. Private Sub ProgressBar2_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
  996. End Sub
  997. Private Sub tmrWinClass_Timer()
  998. '  Dim recentsites(1000)
  999. '  Open app.path+"\recent" For Append As #1
  1000. '    Do While Not EOF(1)
  1001. '        Input #1, recentsites(rs)
  1002. '        txtAddress.AddItem recentsites(rs)
  1003. '        rs = rs + 1
  1004. '    Loop
  1005. '        Close #1
  1006.             
  1007. End Sub
  1008. Private Sub txtAddress_Click()
  1009. rownumber = txtAddress.ListIndex
  1010. txtAddress.Text = txtAddress.List(rownumber)
  1011. WebBrowser1.Navigate txtAddress.Text
  1012. End Sub
  1013. Private Sub txtAddress_GotFocus()
  1014. imgOpenDoor.BorderStyle = 0
  1015. End Sub
  1016. Private Sub txtAddress_KeyDown(KeyCode As Integer, Shift As Integer)
  1017. Select Case KeyCode
  1018.     Case vbKeyEscape
  1019.             Me.Height = 8700
  1020.             Me.Left = 0
  1021.             Me.Width = 10650
  1022.             Me.Top = 0
  1023.             Me.Caption = "SMF Doorway to the Internet"
  1024.      End Select
  1025. End Sub
  1026. Private Sub txtAddress_KeyPress(KeyAscii As Integer)
  1027.   rs = 0
  1028.     On Error Resume Next
  1029. If KeyAscii = vbKeyReturn Then
  1030.     Do Until rs = 100
  1031.         recentsites = txtAddress.List(rs)
  1032.             If txtAddress.Text = recentsites Then
  1033.                 txtAddress.Text = txtAddress
  1034.                 WebBrowser1.Navigate txtAddress.Text
  1035.             Exit Sub ': imgOpenDoor_Click
  1036.             End If
  1037.         rs = rs + 1
  1038.     Loop
  1039.   recentsites = txtAddress.Text
  1040.     Open App.Path + "\recent" For Append As #1
  1041.         Write #1, recentsites
  1042.     Close #1
  1043. imgOpenDoor_Click
  1044. End If
  1045. 'WebBrowser1.Navigate txtAddress.Text
  1046. End Sub
  1047. Private Sub WebBrowser1_GotFocus()
  1048. imgOpenDoor.BorderStyle = 0
  1049. End Sub
  1050. 'Private Sub WebBrowser1_ProgressChange(ByVal Progress As Long, ByVal ProgressMax As Long)
  1051. 'Static x
  1052. 'x = x + 1
  1053. 'If Progress > ProgressMax Then Progress = ProgressMax
  1054. 'If Progress < ProgressBar1.Max Then
  1055. '    ProgressBar1.Max = ProgressMax
  1056. '    ProgressBar1.Value = Progress + 1
  1057. 'Else
  1058. '    ProgressBar1.Max = Progress
  1059. '    ProgressBar1.Value = ProgressBar1.Value
  1060. '    End If
  1061. 'If ProgressBar1.Max > Progress Then ProgressBar1.Value = Progress + 1
  1062. 'Text1.Text = Progress
  1063. 'Text2.Text = ProgressMax
  1064. 'If Progress <> -1 And ProgressBar1.Max > Progress Then ProgressBar1.Value = Progress
  1065. 'End Sub
  1066. Private Sub WebBrowser1_ProgressChange(ByVal progress As Long, ByVal ProgressMax As Long)
  1067. 'On Error GoTo progressERR
  1068. 'PBar.Max = progress + 10000
  1069. If progress = -1 Then Exit Sub
  1070. If ProgressMax = 0 Then Exit Sub
  1071. If progress > ProgressMax Then Exit Sub
  1072. PBar.Max = ProgressMax
  1073. PBar.Value = progress
  1074. If progress >= ProgressMax Then WebBrowser1.Stop
  1075. Label2.Caption = Str$(progress) & "%"
  1076. '    Exit Sub
  1077. 'progressERR:
  1078. End Sub
  1079.  Private Sub WebBrowser1_StatusTextChange(ByVal Text As String)
  1080.        txtStatus.Text = Text
  1081.    txtAddress.Text = WebBrowser1.LocationURL
  1082.   ' Do Until txtAddress.Text = "Done"
  1083.    ' ImgExitDoor.Visible = False
  1084.     'ImgExitDoor.Visible = True
  1085.    ' Loop
  1086.    End Sub
  1087. Private Sub cmdOpenDoor_Click()
  1088.         'txtAddress.AddItem txtAddress.Text
  1089.     'txtAddress.Text = txtAddress
  1090.      WebBrowser1.Navigate txtAddress.Text 'Goes to the website entered in the TextBox
  1091. End Sub
  1092.                                   
  1093. Private Sub WebBrowser1_BeforeNavigate(ByVal URL As Variant, ByVal Cancel As Boolean)
  1094.     txtAddress.AddItem URL
  1095. End Sub
  1096. Private Sub imgExit_Click()
  1097. WebBrowser1.Stop
  1098. End Sub
  1099. Private Sub Form_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  1100.     lblSearchit.BorderStyle = 0
  1101.     imgBack.BorderStyle = 0
  1102.     imgfoward.BorderStyle = 0
  1103.     imgExit.BorderStyle = 0
  1104.     imgHome.BorderStyle = 0
  1105.     imgYahoomail.BorderStyle = 0
  1106.     imgYahooChat.BorderStyle = 0
  1107.     imgHotmail.BorderStyle = 0
  1108.     imgReload.BorderStyle = 0
  1109.     imgHotmail.BorderStyle = 0
  1110.     imgConnect.BorderStyle = 0
  1111.     ImgExitDoor.BorderStyle = 0
  1112.     imgOpenDoor.BorderStyle = 0
  1113. End Sub
  1114. Private Sub imgConnect_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  1115.     imgConnect.BorderStyle = 1
  1116. End Sub
  1117. Private Sub imgReload_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  1118.     imgReload.BorderStyle = 1
  1119.     imgBack.BorderStyle = 0
  1120.     imgfoward.BorderStyle = 0
  1121.     imgExit.BorderStyle = 0
  1122.     imgHome.BorderStyle = 0
  1123.     imgYahoomail.BorderStyle = 0
  1124.     imgYahooChat.BorderStyle = 0
  1125.     imgHotmail.BorderStyle = 0
  1126.     imgHotmail.BorderStyle = 0
  1127.     imgOpenDoor.BorderStyle = 0
  1128. End Sub
  1129. Private Sub imgYahooChat_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  1130.     imgYahooChat.BorderStyle = 1
  1131.     imgBack.BorderStyle = 0
  1132.     imgfoward.BorderStyle = 0
  1133.     imgExit.BorderStyle = 0
  1134.     imgHome.BorderStyle = 0
  1135.     imgYahoomail.BorderStyle = 0
  1136.     imgHotmail.BorderStyle = 0
  1137.     imgReload.BorderStyle = 0
  1138.     imgHotmail.BorderStyle = 0
  1139.     imgOpenDoor.BorderStyle = 0
  1140. End Sub
  1141. Private Sub imgYahoomail_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  1142.     imgYahoomail.BorderStyle = 1
  1143.     imgBack.BorderStyle = 0
  1144.     imgfoward.BorderStyle = 0
  1145.     imgExit.BorderStyle = 0
  1146.     imgHome.BorderStyle = 0
  1147.     imgYahooChat.BorderStyle = 0
  1148.     imgHotmail.BorderStyle = 0
  1149.     imgReload.BorderStyle = 0
  1150.     imgHotmail.BorderStyle = 0
  1151.     imgOpenDoor.BorderStyle = 0
  1152. End Sub
  1153. Private Sub imgBack_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  1154.     imgBack.BorderStyle = 1
  1155.     imgfoward.BorderStyle = 0
  1156.     imgExit.BorderStyle = 0
  1157.     imgHome.BorderStyle = 0
  1158.     imgYahoomail.BorderStyle = 0
  1159.     imgYahooChat.BorderStyle = 0
  1160.     imgHotmail.BorderStyle = 0
  1161.     imgReload.BorderStyle = 0
  1162.     imgHotmail.BorderStyle = 0
  1163.     imgOpenDoor.BorderStyle = 0
  1164. End Sub
  1165. Private Sub imgExit_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  1166.     imgExit.BorderStyle = 1
  1167.     imgBack.BorderStyle = 0
  1168.     imgfoward.BorderStyle = 0
  1169.     imgHome.BorderStyle = 0
  1170.     imgYahoomail.BorderStyle = 0
  1171.     imgYahooChat.BorderStyle = 0
  1172.     imgHotmail.BorderStyle = 0
  1173.     imgReload.BorderStyle = 0
  1174.     imgHotmail.BorderStyle = 0
  1175.     imgOpenDoor.BorderStyle = 0
  1176. End Sub
  1177. Private Sub imgfoward_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  1178.     imgfoward.BorderStyle = 1
  1179.     imgBack.BorderStyle = 0
  1180.     imgExit.BorderStyle = 0
  1181.     imgHome.BorderStyle = 0
  1182.     imgYahoomail.BorderStyle = 0
  1183.     imgYahooChat.BorderStyle = 0
  1184.     imgHotmail.BorderStyle = 0
  1185.     imgReload.BorderStyle = 0
  1186.     imgHotmail.BorderStyle = 0
  1187.     imgOpenDoor.BorderStyle = 0
  1188. End Sub
  1189. Private Sub imgHome_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  1190.     imgHome.BorderStyle = 1
  1191.     imgBack.BorderStyle = 0
  1192.     imgfoward.BorderStyle = 0
  1193.     imgExit.BorderStyle = 0
  1194.     imgYahoomail.BorderStyle = 0
  1195.     imgYahooChat.BorderStyle = 0
  1196.     imgHotmail.BorderStyle = 0
  1197.     imgReload.BorderStyle = 0
  1198.     imgHotmail.BorderStyle = 0
  1199.     imgOpenDoor.BorderStyle = 0
  1200. End Sub
  1201. Private Sub imgHotmail_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  1202.     imgHotmail.BorderStyle = 1
  1203.     imgBack.BorderStyle = 0
  1204.     imgfoward.BorderStyle = 0
  1205.     imgExit.BorderStyle = 0
  1206.     imgHome.BorderStyle = 0
  1207.     imgYahoomail.BorderStyle = 0
  1208.     imgYahooChat.BorderStyle = 0
  1209.     imgReload.BorderStyle = 0
  1210.     imgOpenDoor.BorderStyle = 0
  1211. End Sub
  1212. Private Sub ImgExitDoor_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  1213. ImgExitDoor.BorderStyle = 1
  1214. lblSearchit.BorderStyle = 0
  1215. imgOpenDoor.BorderStyle = 0
  1216. End Sub
  1217. Private Sub imgOpenDoor_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  1218.     imgOpenDoor.BorderStyle = 1
  1219.     imgBack.BorderStyle = 0
  1220.     imgfoward.BorderStyle = 0
  1221.     imgExit.BorderStyle = 0
  1222.     imgHome.BorderStyle = 0
  1223.     imgYahoomail.BorderStyle = 0
  1224.     imgHotmail.BorderStyle = 0
  1225.     imgReload.BorderStyle = 0
  1226.     imgHotmail.BorderStyle = 0
  1227.     lblSearchit.BorderStyle = 0
  1228. End Sub
  1229. Private Sub lblSearchit_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  1230. lblSearchit.BorderStyle = 1
  1231. imgOpenDoor.BorderStyle = 0
  1232. imgOpenDoor.BorderStyle = 0
  1233. End Sub
  1234. 'Code For Bouncing Exit-----------------------------------
  1235. Private Sub Form_Unload(Cancel As Integer)
  1236. On Error Resume Next
  1237. Open App.Path + "\StartUpScroll" For Input As #1
  1238.         Input #1, opeaningscroll
  1239.     Close #1
  1240.     If opeaningscroll = 1 Then Call skipscroll: Exit Sub
  1241.        If Me.WindowState <> 0 Then
  1242.            Me.WindowState = 0
  1243.        End If
  1244.        Cancel = -1
  1245.        Dim HeightOfStartMenu As Long
  1246.        Dim Speed As Long
  1247.        Dim StartAt As Long
  1248.        For i = 1 To 999 '// The start menu never uses a HWND higher than 1000
  1249.            z$ = Space$(128)
  1250.            y = GetClassName(i, z$, 128)
  1251.            x = Left$(z$, y)
  1252.            If LCase(x) = "shell_traywnd" Then
  1253.                GoTo JumpOut:
  1254.            End If
  1255.        Next i
  1256. JumpOut:
  1257.        GetWindowRect i, What
  1258.        '// Get the top pos of the Start Menu
  1259.        HeightOfStartMenu = What.Top + 8300
  1260.        If HeightOfStartMenu <= 0 Then
  1261.            HeightOfStartMenu = Screen.Height
  1262.            '// If some smart guy moves the start-menu, to say
  1263.            '// the top, left or right bounce at the bottom of
  1264.            '// the screen
  1265.        End If
  1266.        '// Turn the value into twips (more commonly used)
  1267.        StartAt = HeightOfStartMenu - 4000
  1268.        If StartAt < Me.Top Then
  1269.            StartAt = Me.Top
  1270.            '// This code prevents the form from bouncing
  1271.            '// higher than itself (not logical, the start menu isn't made
  1272.            '// of rubber you now)
  1273.        End If
  1274.        '// How many "bounces?"
  1275.        Speed = 60
  1276.        '// How fast should this go?
  1277.        'Me.Height = 0
  1278.        'Me.Width = 4000
  1279.          num = 1
  1280. 'Width = 10920
  1281.    For i = 0 To Me.Height
  1282.        Me.Height = Me.Height - num
  1283.        DoEvents
  1284.        Next i
  1285.        For i = 0 To 5900
  1286.            Me.Width = Me.Width - num
  1287.            DoEvents
  1288.            Next i
  1289.      For i = 0 To 500
  1290.         Me.Top = Me.Top + num
  1291.         DoEvents
  1292.         Next i
  1293.     For i = 0 To 12000
  1294.         Me.Left = Me.Left + num
  1295.         DoEvents
  1296.         Next i
  1297. End Sub
  1298. Private Sub form_linkclose()
  1299. GoAgain:
  1300.        Do Until Me.Top >= HeightOfStartMenu
  1301.            DoEvents
  1302.                Me.Top = Me.Top + Speed
  1303.                Me.Left = Me.Left + 15 '<--- Remove the " ' " to make the window bounce sideways!
  1304.            Loop
  1305.            Do Until Me.Top <= StartAt
  1306.                DoEvents
  1307.                    Me.Top = Me.Top - Speed
  1308.                    Me.Left = Me.Left + 15 '<--- Remove the " ' " to make the window bounce sideways!
  1309.                Loop
  1310.                If StartAt >= 10000 And Me.Top >= HeightOfStartMenu Then
  1311.                    Do Until Me.Top >= HeightOfStartMenu + 15000
  1312.                        Me.Top = Me.Top + Speed
  1313.                    Loop
  1314.                    End
  1315.                    Exit Sub
  1316.                End If
  1317.                StartAt = StartAt + 1000
  1318.                Speed = Speed - 5
  1319.                '// Decrease speed with 5 after each "bounce",
  1320.                '// You can change the value all ya want :)
  1321.                If Speed <= 0 Then
  1322.                    Speed = 5
  1323.                    '// If the Speed value gets under zero i will
  1324.                    '// automatically turn into 5 (cause if it don't
  1325.                    '// It will stop or do something crazy
  1326.                End If
  1327.                GoTo GoAgain:
  1328.            End Sub
  1329.