home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Form1
- BorderStyle = 0 'None
- Caption = "Form Drag Example"
- ClientHeight = 3195
- ClientLeft = 0
- ClientTop = 0
- ClientWidth = 4680
- LinkTopic = "Form1"
- ScaleHeight = 3195
- ScaleWidth = 4680
- ShowInTaskbar = 0 'False
- StartUpPosition = 3 'Windows Default
- Begin VB.CommandButton Command1
- Caption = "Drag with this too!"
- Height = 855
- Left = 960
- TabIndex = 2
- Top = 960
- Width = 2655
- End
- Begin VB.Label Label2
- Caption = "X"
- Height = 495
- Left = 4320
- TabIndex = 1
- Top = 120
- Width = 375
- End
- Begin VB.Label Label1
- Caption = "by kr0q - worldfamouskr0q@phreaker.net"
- Height = 495
- Left = 120
- TabIndex = 0
- Top = 2880
- Width = 3615
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Command1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Form_Move Me
- 'you can also enter this code into the mousedown of an object, so you can drag with the object... as shown above
- End Sub
- Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Form_Move Me
- ' ME tells VB that you want the event to happen on the form this code is placed on
- End Sub
-