Friday, 3 February 2012

Drag Text from another Program


Need 1 TextBox  and set AllowDrop property of TextBox1  to True.

Private Sub TextBox1_DragEnter(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles TextBox1.DragEnter
        If (e.Data.GetDataPresent(DataFormats.Text)) Then
            e.Effect = DragDropEffects.Copy
        End If
    End Sub

Private Sub TextBox1_DragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles TextBox1.DragDrop
        TextBox1.Text = e.Data.GetData(DataFormats.Text).ToString
    End Sub

1 comment:

  1. Strange "water hack" burns 2 lbs overnight

    More than 160 thousand women and men are trying a easy and secret "water hack" to drop 2lbs every night in their sleep.

    It is simple and works on anybody.

    Here's how you can do it yourself:

    1) Go get a drinking glass and fill it with water half the way

    2) And now learn this awesome HACK

    and you'll be 2lbs lighter as soon as tomorrow!

    ReplyDelete