home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmLinks
- BorderStyle = 3 'Fixed Dialog
- Caption = "Favorite Links"
- ClientHeight = 6135
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 5895
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 6135
- ScaleWidth = 5895
- ShowInTaskbar = 0 'False
- StartUpPosition = 3 'Windows Default
- Begin VB.TextBox txtURL
- Height = 375
- Index = 9
- Left = 1440
- TabIndex = 25
- Top = 5640
- Width = 4335
- End
- Begin VB.TextBox txtURL
- Height = 375
- Index = 8
- Left = 1440
- TabIndex = 24
- Top = 5160
- Width = 4335
- End
- Begin VB.TextBox txtURL
- Height = 375
- Index = 7
- Left = 1440
- TabIndex = 23
- Top = 4680
- Width = 4335
- End
- Begin VB.TextBox txtURL
- Height = 375
- Index = 6
- Left = 1440
- TabIndex = 22
- Top = 4200
- Width = 4335
- End
- Begin VB.TextBox txtURL
- Height = 375
- Index = 5
- Left = 1440
- TabIndex = 21
- Top = 3720
- Width = 4335
- End
- Begin VB.TextBox txtURL
- Height = 375
- Index = 4
- Left = 1440
- TabIndex = 20
- Top = 3240
- Width = 4335
- End
- Begin VB.TextBox txtURL
- Height = 375
- Index = 3
- Left = 1440
- TabIndex = 19
- Top = 2760
- Width = 4335
- End
- Begin VB.TextBox txtURL
- Height = 375
- Index = 2
- Left = 1440
- TabIndex = 18
- Top = 2280
- Width = 4335
- End
- Begin VB.TextBox txtURL
- Height = 375
- Index = 1
- Left = 1440
- TabIndex = 17
- Top = 1800
- Width = 4335
- End
- Begin VB.TextBox txtURL
- Height = 375
- Index = 0
- Left = 1440
- TabIndex = 16
- Text = "http://www.sybex.com"
- Top = 1320
- Width = 4335
- End
- Begin VB.TextBox txtLinkName
- Height = 375
- Index = 9
- Left = 120
- TabIndex = 15
- Top = 5640
- Width = 1215
- End
- Begin VB.TextBox txtLinkName
- Height = 375
- Index = 8
- Left = 120
- TabIndex = 14
- Top = 5160
- Width = 1215
- End
- Begin VB.TextBox txtLinkName
- Height = 375
- Index = 7
- Left = 120
- TabIndex = 13
- Top = 4680
- Width = 1215
- End
- Begin VB.TextBox txtLinkName
- Height = 375
- Index = 6
- Left = 120
- TabIndex = 12
- Top = 4200
- Width = 1215
- End
- Begin VB.TextBox txtLinkName
- Height = 375
- Index = 5
- Left = 120
- TabIndex = 11
- Top = 3720
- Width = 1215
- End
- Begin VB.TextBox txtLinkName
- Height = 375
- Index = 4
- Left = 120
- TabIndex = 10
- Top = 3240
- Width = 1215
- End
- Begin VB.TextBox txtLinkName
- Height = 375
- Index = 3
- Left = 120
- TabIndex = 9
- Top = 2760
- Width = 1215
- End
- Begin VB.TextBox txtLinkName
- Height = 375
- Index = 2
- Left = 120
- TabIndex = 8
- Top = 2280
- Width = 1215
- End
- Begin VB.TextBox txtLinkName
- Height = 375
- Index = 1
- Left = 120
- TabIndex = 7
- Top = 1800
- Width = 1215
- End
- Begin VB.TextBox txtLinkName
- Height = 375
- Index = 0
- Left = 120
- TabIndex = 6
- Text = "SYBEX"
- Top = 1320
- Width = 1215
- End
- Begin VB.CommandButton cmdCancel
- Cancel = -1 'True
- Caption = "Cancel"
- Height = 495
- Left = 4560
- TabIndex = 3
- Top = 720
- Width = 1215
- End
- Begin VB.CommandButton cmdOK
- Caption = "OK"
- Default = -1 'True
- Height = 495
- Left = 4560
- TabIndex = 2
- Top = 120
- Width = 1215
- End
- Begin VB.TextBox txtTitle
- Height = 375
- Left = 600
- TabIndex = 1
- Top = 360
- Width = 3135
- End
- Begin VB.Label lblURL
- Caption = "URL:"
- Height = 255
- Left = 1320
- TabIndex = 5
- Top = 960
- Width = 375
- End
- Begin VB.Label lblLinkName
- Caption = "Name:"
- Height = 255
- Left = 120
- TabIndex = 4
- Top = 960
- Width = 495
- End
- Begin VB.Label lblTitle
- Caption = "Title:"
- Height = 255
- Left = 120
- TabIndex = 0
- Top = 480
- Width = 375
- End
- Attribute VB_Name = "frmLinks"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Form_Load()
- frmHTML.Enabled = False
- End Sub
- Private Sub Form_Unload(Cancel As Integer)
- frmHTML.Enabled = True
- frmHTML.SetFocus
- End Sub
- Private Sub cmdCancel_Click()
- Unload frmLinks
- End Sub
- Private Sub cmdOK_Click()
- Dim x As Integer
- frmHTML.LinksText = "<FONT SIZE=+1>" + _
- txtTitle.Text + "</FONT><BR>" + vbCrLf
- For x = 0 To 9
- If txtLinkName(x).Text <> "" And _
- txtURL(x).Text <> "" Then
- frmHTML.LinksText = _
- frmHTML.LinksText & _
- "<A HREF=" & Chr(34) & _
- txtURL(x).Text & Chr(34) & _
- ">" & txtLinkName(x).Text & _
- "</A><BR>" & vbCrLf
- End If
- Next x
- Unload frmLinks
- End Sub
-