Click here to Skip to main content
6,822,123 members and growing! (18,612 online)
Email Password   helpLost your password?

WPF / WCF / WF



You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page  Date Filter 
 Msgs 1,251 to 1,275 of 8,671 (Total in Forum: 8,671) (Refresh)FirstPrevNext
QuestionListbox Pinmemberbreakvn23:58 25 Sep '09  
AnswerRe: Listbox PinmvpChristian Graus13:05 26 Sep '09  
GeneralRe: Listbox Pinmemberbreakvn16:27 26 Sep '09  
GeneralRe: Listbox PinmvpChristian Graus16:34 26 Sep '09  
GeneralRe: Listbox Pinmemberbreakvn16:53 26 Sep '09  
GeneralRe: Listbox PinmvpChristian Graus17:01 26 Sep '09  
GeneralRe: Listbox Pinmemberbreakvn17:04 26 Sep '09  
AnswerRe: Listbox PinmvpMark Salsbery7:56 28 Sep '09  
QuestionWhy doesn't the AllowDrop property work with a TextBox? [modified] PinmemberfjparisIII6:18 25 Sep '09  
My previous question concerned dragging and dropping into a ListBox and the answer was in the Drop event I had to execute code like this:
Array a = (Array)e.Data.GetData(DataFormats.FileDrop);

The other part of this is that I have to set the AllowDrop property to true on the ListBox. All that works fine.

But then when we come to a TextBox, setting AllowDrop to True doesn't work. I drag text into the field and the cursor with the red slash through it persists when it enters the TextBox! I noticed the same thing months ago, but was busy with other things, so dropped the attempt to get dragging and dropping working into a TextBox. But when I got it working with a ListBox, I figured I now knew enough to get it working with a TextBox. No such luck! What am I missing?

Addendum: I just read that the WPF TextBox has drag and drop by default, and indeed dragging from one TextBox to another does work by default. But dragging and dropping from Windows Explorer to a WPF TextBox does not work whether or not AllowDrop is set to true, and that's precisely what I need. How can I get it?

modified on Friday, September 25, 2009 12:06 PM

AnswerRe: Why doesn't the AllowDrop property work with a TextBox? PinmvpPete O'Hanlon11:24 25 Sep '09  
GeneralRe: Why doesn't the AllowDrop property work with a TextBox? [modified] PinmemberfjparisIII5:48 26 Sep '09  
GeneralRe: Why doesn't the AllowDrop property work with a TextBox? PinmvpPete O'Hanlon0:34 28 Sep '09  
GeneralRe: Why doesn't the AllowDrop property work with a TextBox? PinmemberfjparisIII6:50 28 Sep '09  
GeneralRe: Why doesn't the AllowDrop property work with a TextBox? PinmvpPete O'Hanlon9:50 28 Sep '09  
GeneralRe: Why doesn't the AllowDrop property work with a TextBox? PinmemberfjparisIII17:41 28 Sep '09  
QuestionHow to create a WCF web service from an existing WSDL ?? PinmemberNiiiissssshhhhhuuuuu4:38 25 Sep '09  
AnswerRe: How to create a WCF web service from an existing WSDL ?? PinmemberRutvik Dave12:47 25 Sep '09  
QuestionCan't update GUI with textbox Text Pinmembermarca29221:14 24 Sep '09  
QuestionNeed to accept drop from drag and drop operation from Windows Explorer PinmemberfjparisIII17:08 24 Sep '09  
AnswerRe: Need to accept drop from drag and drop operation from Windows Explorer PinmemberGideon Engelberth4:22 25 Sep '09  
GeneralRe: Need to accept drop from drag and drop operation from Windows Explorer PinmemberfjparisIII5:06 25 Sep '09  
QuestionFont difference between XP and Vista in wpf app Pinmemberausadmin14:47 24 Sep '09  
AnswerRe: Font difference between XP and Vista in wpf app PinmvpChristian Graus15:22 24 Sep '09  
QuestionAdding progressbar in listview/grid PinmemberHaimbert11:49 24 Sep '09  
QuestionWCF Not Responding Pinmemberrichasea1:08 24 Sep '09  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads.


Last Updated 10 Aug 2007
Web20 | 2.2.0230 (18:30 2 Apr '10 ) | Advertise | Privacy
Copyright © CodeProject, 1999-2010
All Rights Reserved. Terms of Use