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 / September 2004

Tip: Looking for answers? Try searching our database.

normal drag and drop behaviour

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
assaf - 25 Sep 2004 09:15 GMT
hi all

when i allow drag and drop from/to my textbox,
i expect that when i hover over a selected aread,
the cursor would turn into an arror,
instead of an I-Beam.

but this is not the normal behaviour.

i don't know how to make the textbox behave
this way.

all i want is my app to behave as any other app in the world behaves,
when i hover over a selected text area, the cursor
turns into an arrow.

how can i do this?

assaf
Mark Mischke - 25 Sep 2004 15:51 GMT
Hi,

Are you using the DragOver event?  If not, you won't see any cursor
changes when entering potential drop targets (although the DragDrop
event will still work properly).

Check out the online docs for DragOver on MSDN.  The code required is
usually something minimal, like this:

if (e.Data.GetDataPresent(typeof(myObject)))
{
   e.Effect = DragDropEffects.Copy;  // or .None, .All, .Move, etc.
}

Cursor changes are handled automatically, unless you want to use
nonstandard cursors.

Mark

>hi all
>
[quoted text clipped - 15 lines]
>
>assaf

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.