home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form DirControls
- BorderStyle = 3 'Fixed Dialog
- Caption = "My Prog"
- ClientHeight = 2805
- ClientLeft = 4515
- ClientTop = 2805
- ClientWidth = 3735
- ControlBox = 0 'False
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 2805
- ScaleWidth = 3735
- ShowInTaskbar = 0 'False
- Begin VB.CommandButton Command25
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- Caption = "Exit"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 1920
- TabIndex = 6
- Top = 2400
- Width = 1095
- End
- Begin VB.CommandButton Command2
- Caption = "Open"
- BeginProperty Font
- Name = "Arial"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 720
- TabIndex = 4
- Top = 2400
- Width = 1095
- End
- Begin VB.DriveListBox Drive1
- BeginProperty Font
- Name = "Arial"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 330
- Left = 0
- TabIndex = 3
- Top = 0
- Width = 1815
- End
- Begin VB.DirListBox Dir1
- BeginProperty Font
- Name = "Arial"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 1290
- Left = 0
- TabIndex = 2
- Top = 480
- Width = 1815
- End
- Begin VB.FileListBox File1
- BeginProperty Font
- Name = "Arial"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 1350
- Left = 1800
- TabIndex = 1
- Top = 465
- Width = 1935
- End
- Begin VB.TextBox Text1
- BeginProperty Font
- Name = "Arial"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 285
- Left = 1080
- TabIndex = 0
- Top = 1920
- Width = 2655
- End
- Begin VB.Label Label1
- Caption = "Remte file:"
- BeginProperty Font
- Name = "Arial"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 120
- TabIndex = 5
- Top = 1920
- Width = 975
- End
- Attribute VB_Name = "DirControls"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Dim mmflag As Boolean
- Dim sax As Integer
- Dim Say As Integer
- Private Declare Function mciSendString Lib "winmm.dll" Alias _
- "mciSendStringA" (ByVal lpstrCommand As String, ByVal _
- lpstrReturnString As String, ByVal uReturnLength As Long, _
- ByVal hwndCallback As Long) As Long
- Private Type RECT
- Left As Long
- Top As Long
- Right As Long
- Bottom As Long
- End Type
- Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" _
- (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
- Private Declare Function ShowWindow Lib "user32" (ByVal hWnd As Long, _
- ByVal nCmdShow As Long) As Long
- Private Const SW_HIDE = 0
- Private Const SW_SHOWNORMAL = 1
- Private Sub Command25_Click()
- Call ImplodeForm(Me, 2, 500, 1)
- Unload DirControls
- Form12.Show
- End Sub
- Private Sub Dir1_Change()
- File1 = Dir1
- End Sub
- Private Sub Drive1_Change()
- Dir1 = Drive1
- End Sub
- Private Sub File1_Click()
- Text1.Text = File1
- End Sub
- Private Sub Text1_KeyPress(KeyAscii As Integer)
- If KeyAscii = 13 Then
- KeyAscii = 0
- File1.Pattern = Text1.Text
- End If
- End Sub
- Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Dim fml As Long
- Dim fmt As Long
- Dim a As Integer
- If mmflag = True Then
- fml = Me.Left: fmt = Me.Top
- If X > sax Then Me.Left = fml + (X - sax)
- If X < sax Then Me.Left = fml - (sax - X)
- If Y > Say Then Me.Top = fmt + (Y - Say)
- If Y < Say Then Me.Top = fmt - (Say - Y)
- End If
- End Sub
- Private Sub form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
- If mmflag = False Then
- sax = X
- Say = Y
- mmflag = True
- End If
- Me.MousePointer = vbSizePointer
- End Sub
- Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
- mmflag = False
- Me.MousePointer = vbDefault
- End Sub
-