Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

DragDropControl - Example

got this idea while googling

[Image: dd12882786c3c18515db462079d01033.gif]

Code
Class DragDropControl
    Inherits Control

    Public Property Control As Control = New PictureBox 'ListBox 'TextBox

    Public Sub New()
        Me.AllowDrop = True
        Me.Size = New Size(100, 100)
        Control.Dock = DockStyle.Fill
        If TypeOf Control Is TextBox Then CType(Control, TextBox).Multiline = True
        If TypeOf Control Is PictureBox Then CType(Control, PictureBox).SizeMode = PictureBoxSizeMode.StretchImage
        Me.Controls.Add(Control)
    End Sub

    Protected Overrides Sub OnDragEnter(e As DragEventArgs)
        If e.Data.GetDataPresent(DataFormats.FileDrop) Then
            For Each f In e.Data.GetData(DataFormats.FileDrop)
                If TypeOf Control Is TextBox Then Control.Text += f & vbCrLf
                If TypeOf Control Is ListBox Then CType(Control, ListBox).Items.Add(f)
                If TypeOf Control Is PictureBox Then CType(Control, PictureBox).ImageLocation = f
            Next
        End If
        MyBase.OnDragEnter(e)
    End Sub
End Class

🤝
😊 look like ppl just looking to grab codes
(May 21, 2014 02:39 PM)Only3 Wrote:  😊 look like ppl just looking to grab codes

What did you expect, 40+ compliments? Nice shit though.

[Image: 1zL3pDG.jpg]

didnt except anything i was talking in general about this section >> msgbox thread with +40 posts 🤦‍♂
(May 21, 2014 02:39 PM)Only3 Wrote:  😊 look like ppl just looking to grab codes

Are you new to hackforums?

Even the best projects get buried in an hour here with very few comments.
[Image: vjPWhyy.gif]
(May 22, 2014 11:10 AM)$lick Wrote:  Are you new to hackforums?

(May 22, 2014 12:31 AM)Only3 Wrote:  didnt except anything i was talking in general about this section >> msgbox thread with +40 posts 🤦‍♂
😅
Even the best projects get buried in an hour here with very few comments.
If you 'release' code for people to admire you then you must be dumb.

Give time to your thread and explain what is this, how it works, and why we need it.
Then ppl will understand your work and learn from it.




(May 22, 2014 11:10 AM)$lick Wrote:  Even the best projects get buried in an hour here with very few comments.

Can't agree more. Many quality threads have been buried for the same reason OP did.
(May 21, 2014 05:39 PM)SIM-1676753 Wrote:  What did you expect, 40+ compliments? Nice shit though.

hes talking about "grabbing" more like hes leeching , i caught this moron in the act now. Hes a waste of space and oxygen.
(May 22, 2014 11:59 AM)TheBarret Wrote:  hes talking about "grabbing" more like hes leeching , i caught this moron in the act now. Hes a waste of space and oxygen.

Improving source that wasn't yours is not leaching.
[Image: vjPWhyy.gif]
(May 22, 2014 11:59 AM)TheBarret Wrote:  hes talking about "grabbing" more like hes leeching , i caught this moron in the act now. Hes a waste of space and oxygen.

Did he leeched the drag 'n drop function from you?
Oh, of course. Everyone is trying to copy from you. Only TheBarret codes unique applications.
(May 22, 2014 02:02 PM)SubGenius Wrote:  Did he leeched the drag 'n drop function from you?
Oh, of course. Everyone is trying to copy from you. Only TheBarret codes unique applications.

Actually, yeah im pretty orginal arround here, proof me otherwise.
(May 22, 2014 02:37 PM)TheBarret Wrote:  Actually, yeah im pretty orginal arround here, proof me otherwise.

Don't get cocky bruh.
I agree that some your projects are really amazing and unique, no one can't argue with that.

But your attitude is shit. Really.
As much as I respect you for being an HQ coder, that much I find you annoying for making these LQ posts.
(May 22, 2014 03:55 PM)SubGenius Wrote:  Don't get cocky bruh.
I agree that some your projects are really amazing and unique, no one can't argue with that.

But your attitude is shit. Really.
As much as I respect you for being an HQ coder, that much I find you annoying for making these LQ posts.

Im sorry that poke your balloon, but thats me. if it helps put me on the ignore list, case solved.
(May 22, 2014 02:37 PM)TheBarret Wrote:  Actually, yeah im pretty orginal arround here, proof me otherwise.

original 🤦‍♂ all ur projects and codes is from google 😖