home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Form1
- BorderStyle = 3 'Fixed Dialog
- Caption = "Demo Label Functions"
- ClientHeight = 5670
- ClientLeft = 2820
- ClientTop = 1545
- ClientWidth = 6540
- Height = 6075
- Left = 2760
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 5670
- ScaleWidth = 6540
- ShowInTaskbar = 0 'False
- Top = 1200
- Width = 6660
- Begin VB.CommandButton Command3
- Caption = "&Erase Label"
- Height = 615
- Left = 4440
- TabIndex = 5
- Top = 2400
- Width = 1215
- End
- Begin VB.TextBox Text3
- Height = 615
- Left = 960
- TabIndex = 4
- Text = "Text3"
- Top = 2400
- Width = 3255
- End
- Begin VB.TextBox Text2
- Height = 615
- Left = 960
- TabIndex = 3
- Text = "Text2"
- Top = 1560
- Width = 3255
- End
- Begin VB.CommandButton Command2
- Caption = "&Write Label"
- Height = 615
- Left = 4440
- TabIndex = 2
- Top = 1560
- Width = 1215
- End
- Begin VB.TextBox Text1
- Height = 615
- Left = 960
- TabIndex = 1
- Text = "Text1"
- Top = 720
- Width = 3255
- End
- Begin VB.CommandButton Command1
- Caption = "&Read Label"
- Height = 615
- Left = 4440
- TabIndex = 0
- Top = 720
- Width = 1215
- End
- Begin VB.Label Label1
- Caption = "Label1"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H000000FF&
- Height = 735
- Left = 0
- TabIndex = 6
- Top = 4680
- Width = 6495
- End
- Attribute VB_Name = "Form1"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- Text1.Text = GetLabel(Text1.Text)
- End Sub
- Private Sub Command1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
-
- Label1.Caption = "Reads the label from the drive in the adjacent text box."
- End Sub
- Private Sub Command2_Click()
- Call SetLabel(Text2.Text)
- End Sub
- Private Sub Command2_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Label1.Caption = "Writes the label to the drive specified. Delete the existing label first."
- End Sub
- Private Sub Command3_Click()
- Call ClearLabel(Text3.Text)
- End Sub
- Private Sub Command3_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Label1.Caption = "Delete the existing label. (Specify the drive only."
- End Sub
-