마우스 이벤트 drag & drop
*
Public Class Form1

Private Sub TextBox1_DragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles TextBox1.DragDrop
Dim drop As String() = CType(e.Data.GetData(DataFormats.FileDrop), String())
For Each filename As String In drop
TextBox1.Text = filename

Next
End Sub

Private Sub TextBox1_DragEnter(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles TextBox1.DragEnter
If e.Data.GetDataPresent(DataFormats.FileDrop) Then
e.Effect = DragDropEffects.Copy
End If
End Sub
End Class
마우스 이벤트 

Drag And Drop

이 게시물을

공유하기

SEARCH

MENU NAVIGATION