Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5


[VB.NET] Drag & Drop on Textbox
11-11-2011, 04:17 PM
Post: #1
[VB.NET] Drag & Drop on Textbox
[Image: 70e3a2ef99.gif]

How to do it?

[Image: 36f9fe768b.png]

1)Enable AllowDrop Property of the textbox.

2)Put the following code in DragOver Event of the textbox:

Code:
If e.Data.GetDataPresent(DataFormats.FileDrop) Then e.Effect = DragDropEffects.Copy

3)Put the Following code in DragDrop Event of the Textbox:

Code:
Dim data As Array = DirectCast(e.Data.GetData(DataFormats.FileDrop), Array)
Textbox1.Text = data.GetValue(0).ToString
Reply
11-11-2011, 07:13 PM
Post: #2
RE: [VB.NET] Drag & Drop on Textbox
How do I do this on Linux?

[Image: nomnomnom.jpg]
;7$=v?%v%#5>v7v8994
The decrypt code is V, I could not make it any simpler!
Reply



Forum Jump:


User(s) browsing this thread: 1 Guest(s)