home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Form1
- Caption = "TextDrop"
- ClientHeight = 3165
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 4680
- LinkTopic = "Form1"
- ScaleHeight = 3165
- ScaleWidth = 4680
- StartUpPosition = 3 'Windows Default
- Begin VB.TextBox Text2
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 315
- Left = 195
- TabIndex = 2
- Text = "DragMode = Manual"
- Top = 2085
- Width = 4140
- End
- 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 = 315
- Left = 195
- TabIndex = 1
- Text = "DragMode = Automatic"
- Top = 1245
- Width = 4140
- End
- Begin VB.Label Label1
- Alignment = 2 'Center
- BorderStyle = 1 'Fixed Single
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 315
- Left = 195
- TabIndex = 0
- Top = 285
- Width = 4140
- 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 Label1_DragDrop(Source As Control, X As Single, Y As Single)
- Label1.Caption = Source.Name & " was dropped"
- End Sub
- Private Sub Text2_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
- If Shift = 2 Then
- Text2.Drag
- End If
- End Sub
-