home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Form1
- Caption = "Form1"
- ClientHeight = 3255
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 6000
- LinkTopic = "Form1"
- ScaleHeight = 3255
- ScaleWidth = 6000
- StartUpPosition = 3 'Windows Default
- Begin VB.TextBox Text1
- DragMode = 1 'Automatic
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 420
- Left = 2985
- TabIndex = 2
- Text = "Enter some text and drag it"
- Top = 2625
- Width = 2775
- End
- Begin VB.CommandButton Command1
- Caption = "Drag this button"
- DragMode = 1 'Automatic
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 435
- Left = 150
- TabIndex = 1
- Top = 2625
- Width = 1665
- End
- Begin VB.PictureBox Picture1
- BackColor = &H0000FF00&
- Height = 2175
- Left = 75
- ScaleHeight = 2115
- ScaleWidth = 3855
- TabIndex = 0
- Top = 120
- Width = 3915
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Command1_Click()
- Debug.Print "I was clicked"
- End Sub
- Private Sub Picture1_DragDrop(Source As Control, X As Single, Y As Single)
- Picture1.BackColor = vbBlue
- End Sub
- Private Sub Picture1_DragOver(Source As Control, X As Single, Y As Single, State As Integer)
- If State = 0 Then Picture1.BackColor = vbRed
- If State = 2 Then Form1.Caption = "Source Control moves over the PictureBox"
- If State = 1 Then
- Picture1.BackColor = vbGreen
- Form1.Caption = "Drag & Drop Demo"
- End If
-
- End Sub
-