home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / update1a / form2.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1999-07-26  |  16.7 KB  |  546 lines

  1. VERSION 5.00
  2. Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
  3. Object = "{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.0#0"; "SHDOCVW.DLL"
  4. Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.1#0"; "COMDLG32.OCX"
  5. Begin VB.Form Form2 
  6.    AutoRedraw      =   -1  'True
  7.    BorderStyle     =   1  'Fixed Single
  8.    Caption         =   "WebNet Browser "
  9.    ClientHeight    =   6156
  10.    ClientLeft      =   36
  11.    ClientTop       =   612
  12.    ClientWidth     =   9528
  13.    LinkTopic       =   "Form1"
  14.    MaxButton       =   0   'False
  15.    Picture         =   "Form2.frx":0000
  16.    ScaleHeight     =   513
  17.    ScaleMode       =   0  'User
  18.    ScaleWidth      =   1.033
  19.    Begin SHDocVwCtl.WebBrowser WebBrowser1 
  20.       Height          =   5172
  21.       Left            =   0
  22.       TabIndex        =   10
  23.       Top             =   720
  24.       Width           =   9492
  25.       Object.Height          =   431
  26.       Object.Width           =   791
  27.       AutoSize        =   0
  28.       ViewMode        =   1
  29.       AutoSizePercentage=   0
  30.       AutoArrange     =   -1  'True
  31.       NoClientEdge    =   -1  'True
  32.       AlignLeft       =   0   'False
  33.    End
  34.    Begin VB.CommandButton Command6 
  35.       Caption         =   "Exit"
  36.       Height          =   420
  37.       Left            =   4920
  38.       TabIndex        =   9
  39.       ToolTipText     =   "Options"
  40.       Top             =   0
  41.       Width           =   904
  42.    End
  43.    Begin VB.CommandButton Command5 
  44.       Caption         =   "Home"
  45.       Height          =   420
  46.       Left            =   3960
  47.       TabIndex        =   8
  48.       ToolTipText     =   "Home"
  49.       Top             =   0
  50.       Width           =   904
  51.    End
  52.    Begin VB.CommandButton Command4 
  53.       Caption         =   "Stop"
  54.       Height          =   420
  55.       Left            =   3000
  56.       TabIndex        =   7
  57.       ToolTipText     =   "Stop"
  58.       Top             =   0
  59.       Width           =   904
  60.    End
  61.    Begin VB.CommandButton Command3 
  62.       Caption         =   "Refresh"
  63.       Height          =   420
  64.       Left            =   2040
  65.       TabIndex        =   6
  66.       ToolTipText     =   "Refresh"
  67.       Top             =   0
  68.       Width           =   904
  69.    End
  70.    Begin VB.CommandButton Command2 
  71.       Caption         =   "Forward"
  72.       Height          =   420
  73.       Left            =   1080
  74.       TabIndex        =   5
  75.       ToolTipText     =   "Forward"
  76.       Top             =   0
  77.       Width           =   904
  78.    End
  79.    Begin VB.CommandButton Command1 
  80.       Caption         =   "Back"
  81.       Height          =   420
  82.       Left            =   120
  83.       TabIndex        =   4
  84.       ToolTipText     =   "Back"
  85.       Top             =   0
  86.       Width           =   904
  87.    End
  88.    Begin MSComDlg.CommonDialog CommonDialog1 
  89.       Left            =   4800
  90.       Top             =   3240
  91.       _ExtentX        =   677
  92.       _ExtentY        =   677
  93.       _Version        =   327680
  94.    End
  95.    Begin MSComctlLib.StatusBar StatusBar1 
  96.       Align           =   2  'Align Bottom
  97.       Height          =   252
  98.       Left            =   0
  99.       TabIndex        =   1
  100.       Top             =   5904
  101.       Width           =   9528
  102.       _ExtentX        =   16806
  103.       _ExtentY        =   445
  104.       _Version        =   393216
  105.       BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628} 
  106.          NumPanels       =   3
  107.          BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
  108.             Style           =   6
  109.             Alignment       =   1
  110.             AutoSize        =   2
  111.             Object.Width           =   1461
  112.             MinWidth        =   1469
  113.             TextSave        =   "5/28/99"
  114.             Object.ToolTipText     =   "Date"
  115.          EndProperty
  116.          BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
  117.             Style           =   5
  118.             Alignment       =   1
  119.             AutoSize        =   2
  120.             Object.Width           =   1461
  121.             MinWidth        =   1469
  122.             TextSave        =   "5:13 PM"
  123.             Object.ToolTipText     =   "Time"
  124.          EndProperty
  125.          BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
  126.             Alignment       =   1
  127.             AutoSize        =   2
  128.             Object.Width           =   2392
  129.             MinWidth        =   2386
  130.             Text            =   "Browser 
  131. 1999"
  132.             TextSave        =   "Browser 
  133. 1999"
  134.             Object.ToolTipText     =   "Copyright Info"
  135.          EndProperty
  136.       EndProperty
  137.    End
  138.    Begin VB.ComboBox Address 
  139.       Height          =   288
  140.       ItemData        =   "Form2.frx":0052
  141.       Left            =   960
  142.       List            =   "Form2.frx":0054
  143.       TabIndex        =   0
  144.       ToolTipText     =   "Web Site Address"
  145.       Top             =   480
  146.       Width           =   4862
  147.    End
  148.    Begin VB.Label Label2 
  149.       BorderStyle     =   1  'Fixed Single
  150.       Height          =   600
  151.       Left            =   5880
  152.       TabIndex        =   3
  153.       ToolTipText     =   "Link to what page"
  154.       Top             =   0
  155.       Width           =   3612
  156.    End
  157.    Begin VB.Label Label1 
  158.       Caption         =   "Address:"
  159.       BeginProperty Font 
  160.          Name            =   "MS Sans Serif"
  161.          Size            =   9.6
  162.          Charset         =   0
  163.          Weight          =   400
  164.          Underline       =   0   'False
  165.          Italic          =   0   'False
  166.          Strikethrough   =   0   'False
  167.       EndProperty
  168.       Height          =   252
  169.       Left            =   120
  170.       TabIndex        =   2
  171.       Top             =   480
  172.       Width           =   852
  173.    End
  174.    Begin VB.Menu File 
  175.       Caption         =   "&File"
  176.       NegotiatePosition=   1  'Left
  177.       Begin VB.Menu Exit 
  178.          Caption         =   "Exit"
  179.          Shortcut        =   ^Q
  180.       End
  181.    End
  182.    Begin VB.Menu Extra 
  183.       Caption         =   "&Extra's"
  184.       Enabled         =   0   'False
  185.       NegotiatePosition=   1  'Left
  186.       Begin VB.Menu link 
  187.          Caption         =   "Links"
  188.          Begin VB.Menu Telery 
  189.             Caption         =   "Telery"
  190.          End
  191.          Begin VB.Menu line 
  192.             Caption         =   "-"
  193.          End
  194.          Begin VB.Menu searcheng 
  195.             Caption         =   "Search Engine's"
  196.             Begin VB.Menu vista 
  197.                Caption         =   "Altavista"
  198.             End
  199.             Begin VB.Menu Excite 
  200.                Caption         =   "Excite"
  201.             End
  202.             Begin VB.Menu bot 
  203.                Caption         =   "HotBot"
  204.             End
  205.             Begin VB.Menu Lycos 
  206.                Caption         =   "Lycos"
  207.             End
  208.             Begin VB.Menu Magellan 
  209.                Caption         =   "Magellan"
  210.             End
  211.             Begin VB.Menu search 
  212.                Caption         =   "search.com"
  213.             End
  214.             Begin VB.Menu crawl 
  215.                Caption         =   "WebCrawler"
  216.             End
  217.             Begin VB.Menu gans 
  218.                Caption         =   "Yahooligans"
  219.             End
  220.             Begin VB.Menu Yahoo 
  221.                Caption         =   "Yahoo"
  222.             End
  223.          End
  224.          Begin VB.Menu dwnload 
  225.             Caption         =   "Download"
  226.             Begin VB.Menu media 
  227.                Caption         =   "Macromedia"
  228.             End
  229.             Begin VB.Menu download 
  230.                Caption         =   "download.com"
  231.             End
  232.             Begin VB.Menu shareware 
  233.                Caption         =   "shareware.com"
  234.             End
  235.             Begin VB.Menu window 
  236.                Caption         =   "Windows95.com"
  237.             End
  238.          End
  239.       End
  240.       Begin VB.Menu Mail 
  241.          Caption         =   "Mail"
  242.          Begin VB.Menu SendMail 
  243.             Caption         =   "Send Mail"
  244.             Shortcut        =   ^M
  245.          End
  246.       End
  247.       Begin VB.Menu line2 
  248.          Caption         =   "-"
  249.       End
  250.       Begin VB.Menu New 
  251.          Caption         =   "New Browser"
  252.          Shortcut        =   ^N
  253.       End
  254.       Begin VB.Menu FileOpen 
  255.          Caption         =   "Open"
  256.          Enabled         =   0   'False
  257.          Shortcut        =   ^O
  258.       End
  259.       Begin VB.Menu FileSave 
  260.          Caption         =   "Save As"
  261.          Enabled         =   0   'False
  262.          Shortcut        =   ^S
  263.       End
  264.       Begin VB.Menu IP 
  265.          Caption         =   "IP Finder"
  266.          Shortcut        =   ^I
  267.       End
  268.       Begin VB.Menu midiplayer 
  269.          Caption         =   "Local Midi Player"
  270.          Shortcut        =   ^L
  271.       End
  272.    End
  273.    Begin VB.Menu Opt 
  274.       Caption         =   "&Options"
  275.       NegotiatePosition=   1  'Left
  276.       Begin VB.Menu Options 
  277.          Caption         =   "Option's Menu"
  278.          Shortcut        =   ^F
  279.       End
  280.    End
  281.    Begin VB.Menu About 
  282.       Caption         =   "&About"
  283.       NegotiatePosition=   1  'Left
  284.       Begin VB.Menu About1 
  285.          Caption         =   "About WebNet Browser"
  286.       End
  287.    End
  288.    Begin VB.Menu mnuFile 
  289.       Caption         =   "Popup Menu"
  290.       Visible         =   0   'False
  291.       Begin VB.Menu mnusub1 
  292.          Caption         =   "Enable Extra's"
  293.          Shortcut        =   ^E
  294.       End
  295.       Begin VB.Menu mnusub2 
  296.          Caption         =   "Disable Extra's"
  297.          Shortcut        =   ^D
  298.       End
  299.       Begin VB.Menu mnusub3 
  300.          Caption         =   "Exit"
  301.          Shortcut        =   ^X
  302.       End
  303.    End
  304. Attribute VB_Name = "Form2"
  305. Attribute VB_GlobalNameSpace = False
  306. Attribute VB_Creatable = False
  307. Attribute VB_PredeclaredId = True
  308. Attribute VB_Exposed = False
  309. Event NewWindow(URL As String, Flags As Long, TargetFrameName As String, PostData, Headers As String, Processed As Boolean)
  310. Private Sub Author_Click()
  311. WebBrowser1.Navigate ("http://www.telery.com/kf4zpb/")
  312. End Sub
  313. Private Sub bot_Click()
  314. WebBrowser1.Navigate ("http://www.hotbot.com/")
  315. End Sub
  316. Private Sub Command6_Click()
  317. Unload Me
  318. End Sub
  319. Private Sub crawl_Click()
  320. WebBrowser1.Navigate ("http://www.webcrawler.com./")
  321. End Sub
  322. Private Sub download_Click()
  323. WebBrowser1.Navigate ("http://www.download.com/")
  324. End Sub
  325. Private Sub Excite_Click()
  326. WebBrowser1.Navigate ("http://www.excite.com/")
  327. End Sub
  328. Private Sub Extraenable_Click()
  329. Extra.Enabled = True
  330. FileOpen.Enabled = True
  331. FileSave.Enabled = True
  332. End Sub
  333. Private Sub Extradisable_Click()
  334. Extra.Enabled = False
  335. FileOpen.Enabled = False
  336. FileSave.Enabled = False
  337. End Sub
  338. Private Sub Exit_Click()
  339. Unload Me
  340. End Sub
  341. Private Sub Form_Load()
  342.     Move (Screen.Width - Width) \ 2, (Screen.Height - Height) \ 2 'center the form on the screen
  343.        URL = "c:\blank.htm"
  344.        WebBrowser1.Navigate URL
  345. End Sub
  346.    Private Sub Address_Click()
  347. WebBrowser1.Navigate (Address.Text)
  348.     Address.AddItem Item, Index
  349.           On Error Resume Next
  350.    End Sub
  351. Private Sub Address_KeyPress(KeyAscii As Integer)
  352. If KeyAscii = 13 Then
  353. Address_Click
  354. End If
  355. End Sub
  356. Private Sub Address_LostFocus()
  357. Address.AddItem (Address.Text)
  358. End Sub
  359. Private Sub gans_Click()
  360. WebBrowser1.Navigate ("http://www.yahooligans.com/")
  361. End Sub
  362. Private Sub Home_Click()
  363. On Error GoTo HomeErr
  364. WebBrowser1.Navigate ("http://www.telery.com")
  365. HomeErr:
  366. End Sub
  367. Private Sub Command1_Click()
  368. On Error GoTo BackErr
  369. WebBrowser1.GoBack
  370. BackErr:
  371.        Exit Sub
  372. End Sub
  373. Private Sub Command2_Click()
  374. On Error GoTo ForwardErr
  375. WebBrowser1.GoForward
  376.        
  377. ForwardErr:
  378.        Exit Sub
  379. End Sub
  380. Private Sub Command3_Click()
  381. On Error GoTo RefreshErr
  382. WebBrowser1.Refresh
  383. RefreshErr:
  384.        Exit Sub
  385. End Sub
  386. Private Sub Command4_Click()
  387. On Error GoTo StopErr
  388. WebBrowser1.Stop
  389. StopErr:
  390.        Exit Sub
  391. End Sub
  392. Private Sub Command5_Click()
  393. WebBrowser1.Navigate ("http://www.telery.com/")
  394.        Exit Sub
  395. End Sub
  396. Private Sub IP_Click()
  397. frmIP.Show 1
  398. End Sub
  399. Private Sub Lycos_Click()
  400. WebBrowser1.Navigate ("http://www.lycos.com/")
  401. End Sub
  402. Private Sub Magellan_Click()
  403. WebBrowser1.Navigate ("http://www.mckinley.com/")
  404. End Sub
  405. Private Sub media_Click()
  406. WebBrowser1.Navigate ("http://www.macromedia.com/")
  407. End Sub
  408. Private Sub midiplayer_Click()
  409. frmMidi.Show 1
  410. End Sub
  411. Private Sub mnusub1_Click()
  412. Extra.Enabled = True
  413. FileOpen.Enabled = True
  414. FileSave.Enabled = True
  415. End Sub
  416. Private Sub mnusub2_Click()
  417. Extra.Enabled = False
  418. FileOpen.Enabled = False
  419. FileSave.Enabled = False
  420. End Sub
  421. Private Sub mnusub3_Click()
  422. Unload Me
  423. End Sub
  424. Private Sub New_Click()
  425. 'to do
  426.     Msg = "New Window Code Goes Here"
  427.     MsgTitle = "Not Ready Yet"
  428.     prompt = MsgBox(Msg, vbOKOnly, MsgTitle)
  429. End Sub
  430. Private Sub FileOpen_Click()
  431.        
  432.        On Error GoTo Err_Handler
  433.        CommonDialog1.CancelError = True
  434.        CommonDialog1.Filter = "HTML, HTM, HT3 Files (*.html; *.htm; *.ht3)|*.html; *.htm; *.ht3|TXT Files (*.txt)|*.txt|Document Files (*.doc)|*.doc"
  435.        CommonDialog1.ShowOpen
  436.        WebBrowser1.Picture = LoadPicture(CommonDialog1.filename)
  437.        If CommonDialog1.filename <> "" Then
  438.            WebBrowser1.filename = CommonDialog1.filename
  439.            Form1.Caption = CommonDialog1.FileTitle
  440.            End If
  441.            Exit Sub
  442. Err_Handler:
  443.        Exit Sub
  444.    End Sub
  445. Private Sub About1_Click()
  446. frmAbout.Show 1
  447. End Sub
  448. Private Sub Menu1_Click()
  449. End Sub
  450. Private Sub Refresh_Click()
  451. WebBrowser1.Refresh
  452. End Sub
  453. Private Sub FileSave_Click()
  454.         
  455.         
  456.        On Error GoTo Err_Handler
  457.        CommonDialog1.CancelError = True
  458.        CommonDialog1.Filter = "HTML, HTM, HT3 Files (*.html; *.htm; *.ht3)|*.html; *.htm; *.ht3|TXT Files (*.txt)|*.txt|Document Files (*.doc)|*.doc"
  459.        CommonDialog1.ShowSave
  460.        If CommonDialog1.filename <> "" Then
  461.            Picture1.filename = CommonDialog1.filename
  462.            Form1.Caption = CommonDialog1.FileTitle
  463.            End If
  464.            Exit Sub
  465. Err_Handler:
  466.        Exit Sub
  467.    End Sub
  468. Private Sub Picture1_Click()
  469. WebBrowser1.Navigate ("http://www.telery.com/kf4zpb/")
  470. End Sub
  471. Private Sub Options_Click()
  472. frmOpt.Show 1
  473. End Sub
  474. Private Sub search_Click()
  475. WebBrowser1.Navigate ("http://www.search.com/")
  476. End Sub
  477. Private Sub SendMail_Click()
  478. frmMain.Show 1
  479. End Sub
  480. Private Sub shareware_Click()
  481. WebBrowser1.Navigate ("http://www.shareware.com/")
  482. End Sub
  483. Private Sub Stop_Click()
  484. WebBrowser1.Stop
  485. End Sub
  486. Private Sub Telery_Click()
  487. WebBrowser1.Navigate ("http://www.telery.com/")
  488. End Sub
  489. Private Sub vista_Click()
  490. WebBrowser1.Navigate ("http://www.altavista.com/")
  491. End Sub
  492. Private Sub WebBrowser1_StatusTextChange(ByVal Text As String)
  493.     Label2 = Text
  494. End Sub
  495. Private Sub window_Click()
  496. WebBrowser1.Navigate ("http://www.windows95.com/")
  497. End Sub
  498. Private Sub Yahoo_Click()
  499. WebBrowser1.Navigate ("http://www.yahoo.com/")
  500. End Sub
  501. Private Sub WebBrowser1_TitleChange(ByVal Text As String)
  502.        Me.Caption = Text
  503.    End Sub
  504.       Private Sub Cancel_Click()
  505. Unload Me 'exit the program
  506. End Sub
  507. Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
  508. If Button = 2 Then PopupMenu mnuFile
  509. End Sub
  510. Private Sub Form1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
  511. If Button = 2 Then PopupMenu mnuFile
  512. End Sub
  513. Private Sub WebBrowser1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
  514. If Button = 2 Then PopupMenu mnuFile
  515. End Sub
  516. Private Sub Label1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
  517. If Button = 2 Then PopupMenu mnuFile
  518. End Sub
  519. Private Sub Label2_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
  520. If Button = 2 Then PopupMenu mnuFile
  521. End Sub
  522. Private Sub StatusBar1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
  523. If Button = 2 Then PopupMenu mnuFile
  524. End Sub
  525. Private Sub Address_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
  526. If Button = 2 Then PopupMenu mnuFile
  527. End Sub
  528. Private Sub Command1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
  529. If Button = 2 Then PopupMenu mnuFile
  530. End Sub
  531. Private Sub Command2_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
  532. If Button = 2 Then PopupMenu mnuFile
  533. End Sub
  534. Private Sub Command3_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
  535. If Button = 2 Then PopupMenu mnuFile
  536. End Sub
  537. Private Sub Command4_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
  538. If Button = 2 Then PopupMenu mnuFile
  539. End Sub
  540. Private Sub Command5_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
  541. If Button = 2 Then PopupMenu mnuFile
  542. End Sub
  543. Private Sub Command6_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
  544. If Button = 2 Then PopupMenu mnuFile
  545. End Sub
  546.