Click here to Skip to main content
15,881,089 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
In my WPF application, I implemented drag & drop to open files from Windows Explorer
using AllowDrop="True" DragOver="MainWindow_DragOver" Drop="MainWindow_Drop"
no problem, everything works fine.

But if a dialog box is open
I can always do Drag/Drop files from Windows Explorer into the main window of my application.
Have you ever encountered this problem? Can you help me solve it? Thank you
Posted
Updated 14-Sep-11 21:49pm
v2
Comments
Wayne Gaylard 15-Sep-11 3:56am    
I don't understand the question. Do you mean that you don't want drag and drop enabled if you have a dialogue open?
Member 7891883 15-Sep-11 4:39am    
For example, if you open Visual Studio, you can drag/drop a file from explorer
but if you type "Help/About Microsoft Visual", drag / drop is then disabled

In my application it is not, we can always drop files

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