Click here to Skip to main content
15,892,643 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I can drag and drop a text file to be read into a textbox in a WinForms, no problem.

However I need to have a WPF textbox in my WinForms and perform the same action.(It can take more than 1024 characters before an unrequested wrap is performed unlike the WinForms version)

Can someone make a simple example in c# that they have tested to verify it works.

What I have tried:

Tried as stated above

<Canvas>
    <TextBox x:Name="textboxJon" HorizontalAlignment="Left" Height="257" Margin="138,90,0,0" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top" Width="524"   AllowDrop="True" DragEnter="textboxJon_DragEnter" DragDrop.Drop="textboxJon_DragDrop"/>

</Canvas>
Posted
Updated 14-May-18 22:13pm

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900