Link to home
Start Free TrialLog in
Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland

asked on

RichTextBox drag_drop event not firing

On my form load I have the code: Me.RichTextBox2.AllowDrop = True

Then I have the code below but the DragDrop event doesn't fire (even though other regular text boxes accept the drop)

    Private Sub RichTextBox2_DragEnter(sender As Object, e As System.Windows.Forms.DragEventArgs) Handles RichTextBox2.DragEnter
        e.Effect = DragDropEffects.Copy
    End Sub

    Private Sub RichTextBox2_DragDrop(sender As Object, e As System.Windows.Forms.DragEventArgs) Handles RichTextBox2.DragDrop
    <CODE HERE DOES NOT FIRE>
End Sub
ASKER CERTIFIED SOLUTION
Avatar of ktaczala
ktaczala
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Murray Brown

ASKER

Thanks very much