11-10-13, 12:19 PM
السلام عليكم ورحمة الله
ارنا اعرف كيفية جلب مسار الملف او المجلد عن طريق DragDrop
اريد جلب مسار المجلد فقط بحيث لو القى ملف لايتم جلب المسار
ارنا اعرف كيفية جلب مسار الملف او المجلد عن طريق DragDrop
اريد جلب مسار المجلد فقط بحيث لو القى ملف لايتم جلب المسار
PHP كود :
Private Sub TextBox_Pth_DragDrop(sender As Object, e As Windows.Forms.DragEventArgs) Handles TextBox_Pth.DragDrop
TextBox_Pth.Text = (CType(e.Data.GetData(Windows.Forms.DataFormats.FileDrop), Array).GetValue(0).ToString)
End Sub
Private Sub TextBox_Pth_DragEnter(sender As Object, e As Windows.Forms.DragEventArgs) Handles TextBox_Pth.DragEnter
If (e.Data.GetDataPresent(Windows.Forms.DataFormats.FileDrop)) Then
e.Effect = Windows.Forms.DragDropEffects.Copy
End If
End Sub