By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,265 Members | 1,250 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,265 IT Pros & Developers. It's quick & easy.

DragDrop within a rich text box

P: n/a
I'm trying to program drag drop in a rich text box that
is similiar to what you would see in wordpad, Word, etc.
specifically, I'd like to move/copy text using drag
drop. I can't seem to get the insertion cursor to follow
the dragdrop pointer, like you see in word. I've tried:

Private Sub RichTextBox1_DragOver(...)
Dim Pos As Integer =
RichTextBox1.GetCharFromPosition(New Point(e.x, e.y))
RichTextBox1.SelectionLength = 0
RichTextBox1.SelectionStart = Pos
End Sub

With this, the insertion point follows behind the cursor
a set distance, by the insertion is actually done at the
point of the cursor. Any suggestions would be

P.S., any idea why the help files say that the DragDrop
events are for internal framework use only and they don't
show up in the event lists?
Nov 20 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.