Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / December 2004

Tip: Looking for answers? Try searching our database.

RichTextBox and dodragdrop

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lance Johnson - 08 Dec 2004 16:30 GMT
I seem to be having troubles implementing dragdrop on a richtextbox.  I seem
to have been able to get the dropping part working fine when coming from an
external application.  It's the dragging part.

It does seem to drag, but the icon always stays as None and I have no idea
why.  I can see in my code on the drag enter for entering the other control
that it's set.  However, the icon never changes and if I drop it, the
DragDrop event never fires.  Am I missing something or do I need to
implement my own code for doing the drag operation?

Lance Johnson
Jeff Gaines - 08 Dec 2004 18:26 GMT
> I seem to be having troubles implementing dragdrop on a richtextbox.
> I seem to have been able to get the dropping part working fine when
[quoted text clipped - 7 lines]
>
> Lance Johnson

You need to copy the dragged data to the Clipboard in an appropriate
format. I have just re-installed the OS on this PC so don't have access
to .NET at the moment but have a look at the help for Clipboard.SetData
(from memory).

If nobody else chimes in and you still have issues come back, I have a
couple of routines for setting the Clipboard in DROPFILES format and
the format Explorer expects to create shortcuts if that's of interest.

I will have .NET installed soon,none of my utilities work without it!

Signature

Jeff Gaines


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.