Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Textbox Drag & Drop

Status
Not open for further replies.

bigfoot

Programmer
May 4, 1999
1,779
US
I'm doing a project that involves D&D.

Here is my problem.

>>The textbox being drug from<<

Test to see if any text is selected (.SelectedText)
Test to see if the mouse cursor is over the selected text (no way that I can see).


Interesting to note how the address bar works in Windows Explorer.
When a mousedown occurs over text in the address bar it only allows the text to be selected. It does not allow a drag to begin.
Only when you mousedown over the address' icon in the left of the textbox does it allow the address to be dragged, then it drags all of the text from the address bar.

How do I make this happen in a textbox in .net?


It's always the small stuff that boggles the mind.

Thanks ahead of time.
 
I don't think that is possible. I belive that drag feature is a feature in Internet Explorer. Even this box (which is not asp.net) has the ability to drag text.

------
 
But what I want is how do I tell if my mouse cursor is over the selected text? There must be a way.
Why does M$ leave this stuff out?

Like not being able to get to the row on a datagrid.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top