Click here to Skip to main content
15,900,631 members
Home / Discussions / C#
   

C#

 
QuestionUsing drag and drop in c# Pin
Phanindra Kumar3-Jul-06 2:00
Phanindra Kumar3-Jul-06 2:00 
AnswerRe: Using drag and drop in c# [modified] Pin
jjansen3-Jul-06 2:06
jjansen3-Jul-06 2:06 
GeneralRe: Using drag and drop in c# Pin
Phanindra Kumar3-Jul-06 19:16
Phanindra Kumar3-Jul-06 19:16 
GeneralRe: Using drag and drop in c# Pin
jjansen3-Jul-06 19:53
jjansen3-Jul-06 19:53 
GeneralRe: Using drag and drop in c# Pin
Phanindra Kumar3-Jul-06 20:33
Phanindra Kumar3-Jul-06 20:33 
GeneralRe: Using drag and drop in c# Pin
jjansen3-Jul-06 21:04
jjansen3-Jul-06 21:04 
GeneralRe: Using drag and drop in c# Pin
Phanindra Kumar3-Jul-06 22:12
Phanindra Kumar3-Jul-06 22:12 
AnswerRe: Using drag and drop in c# Pin
jjansen3-Jul-06 22:39
jjansen3-Jul-06 22:39 
I think I know what's going on. When I tested my own application I noticed something strange. When I drag from Explorer, the individual controls in my application react to drag-drop events. However, when I drag from an OpenFileDialog the controls do not respond, but the Form they are on does! (I should mention that in my case the Form happens to have AllowDrop set to true.)

What you can do is to add event handlers for DragEnter and DragDrop to your application Form. In these event handlers check which control the mouse cursor is on (e.g. using the position given in the DragEventArgs) and re-route the event to that control.

GeneralRe: Using drag and drop in c# Pin
Phanindra Kumar3-Jul-06 23:02
Phanindra Kumar3-Jul-06 23:02 
GeneralRe: Using drag and drop in c# Pin
jjansen4-Jul-06 1:17
jjansen4-Jul-06 1:17 
GeneralRe: Using drag and drop in c# Pin
Phanindra Kumar4-Jul-06 1:35
Phanindra Kumar4-Jul-06 1:35 
QuestionConverting Datagrid to Excel sheet in C# Pin
aaraaayen3-Jul-06 1:44
aaraaayen3-Jul-06 1:44 
AnswerRe: Converting Datagrid to Excel sheet in C# Pin
MCSD-Gandalf3-Jul-06 2:41
MCSD-Gandalf3-Jul-06 2:41 
QuestionGridview to Excel Sheet Pin
aaraaayen3-Jul-06 1:03
aaraaayen3-Jul-06 1:03 
AnswerRe: Gridview to Excel Sheet Pin
psamy3-Jul-06 1:29
psamy3-Jul-06 1:29 
Questionuse csharp dll in VC dotnet Pin
scorpion_pgm823-Jul-06 0:59
scorpion_pgm823-Jul-06 0:59 
AnswerRe: use csharp dll in VC dotnet Pin
stancrm3-Jul-06 1:37
stancrm3-Jul-06 1:37 
Questionhow to Systemtray notification Pin
lifo.net3-Jul-06 0:50
lifo.net3-Jul-06 0:50 
AnswerRe: how to Systemtray notification Pin
stancrm3-Jul-06 1:32
stancrm3-Jul-06 1:32 
GeneralRe: how to Systemtray notification Pin
foysal mamun3-Jul-06 2:01
foysal mamun3-Jul-06 2:01 
GeneralRe: how to Systemtray notification Pin
stancrm3-Jul-06 2:26
stancrm3-Jul-06 2:26 
GeneralRe: how to Systemtray notification Pin
foysal mamun3-Jul-06 22:24
foysal mamun3-Jul-06 22:24 
GeneralRe: how to Systemtray notification Pin
stancrm3-Jul-06 22:35
stancrm3-Jul-06 22:35 
GeneralRe: how to Systemtray notification Pin
foysal mamun4-Jul-06 19:10
foysal mamun4-Jul-06 19:10 
GeneralRe: how to Systemtray notification Pin
stancrm4-Jul-06 19:50
stancrm4-Jul-06 19:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

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