Click here to Skip to main content
16,010,553 members
Home / Discussions / C#
   

C#

 
AnswerRe: Drag Drop - Simple Theory - Simple Solution? Pin
Tristan Rhodes16-Dec-03 3:05
Tristan Rhodes16-Dec-03 3:05 
AnswerRe: Drag Drop - Simple Theory - Simple Solution? Pin
Heath Stewart16-Dec-03 3:42
protectorHeath Stewart16-Dec-03 3:42 
GeneralThe Objective / Solution Pin
16-Dec-03 4:27
suss16-Dec-03 4:27 
GeneralRe: The Objective / Solution Pin
Heath Stewart16-Dec-03 5:04
protectorHeath Stewart16-Dec-03 5:04 
GeneralRe: The Objective / Solution Pin
Tristan Rhodes16-Dec-03 5:27
Tristan Rhodes16-Dec-03 5:27 
GeneralRe: The Objective / Solution Pin
Heath Stewart16-Dec-03 5:29
protectorHeath Stewart16-Dec-03 5:29 
GeneralRe: The Objective / Solution Pin
Tristan Rhodes16-Dec-03 6:16
Tristan Rhodes16-Dec-03 6:16 
GeneralRe: The Objective / Solution Pin
Heath Stewart16-Dec-03 6:21
protectorHeath Stewart16-Dec-03 6:21 
No, don't override DoDragDrop. For one, it's not virtual (meaning you have to declare it with the new) keyword. Second, the data parameter expects an IDataObject (or temporary, unformatted Object) from .NET - not COM (type Types, while named the same, are still different Types).

You need to P/Invoke the native DoDragDrop functions. I only meant that you could initiate drag-n-drop using the same event handlers but using the P/Invoked code. Your drop targets can use the managed drag-n-drop events because the data object will by seen by .NET the same way. If you want to support the same formats as the DataFormats class fields, just use the same format IDs as they have (which you can find by using the same strings (check the fields' values) or the IDs, which you can get from the Win32 headers).

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: The Objective / Solution Pin
Tristan Rhodes16-Dec-03 6:33
Tristan Rhodes16-Dec-03 6:33 
GeneralRich Text box problem Pin
Abhi158116-Dec-03 2:43
Abhi158116-Dec-03 2:43 
GeneralRe: Rich Text box problem Pin
Heath Stewart16-Dec-03 3:36
protectorHeath Stewart16-Dec-03 3:36 
QuestionHow to report changes in FTP server? Pin
mkomasi16-Dec-03 2:43
mkomasi16-Dec-03 2:43 
AnswerRe: How to report changes in FTP server? Pin
Heath Stewart16-Dec-03 3:24
protectorHeath Stewart16-Dec-03 3:24 
Generalshortcut on text-less button Pin
troels_sorensen16-Dec-03 2:08
troels_sorensen16-Dec-03 2:08 
GeneralRe: shortcut on text-less button Pin
Heath Stewart16-Dec-03 3:23
protectorHeath Stewart16-Dec-03 3:23 
Generaldetecting and editing extended properties Pin
pekai15-Dec-03 23:50
pekai15-Dec-03 23:50 
GeneralRe: detecting and editing extended properties Pin
Heath Stewart16-Dec-03 3:21
protectorHeath Stewart16-Dec-03 3:21 
GeneralRe: detecting and editing extended properties Pin
pekai16-Dec-03 3:50
pekai16-Dec-03 3:50 
GeneralRe: detecting and editing extended properties Pin
Heath Stewart16-Dec-03 4:05
protectorHeath Stewart16-Dec-03 4:05 
GeneralRe: detecting and editing extended properties Pin
pekai16-Dec-03 4:18
pekai16-Dec-03 4:18 
GeneralRe: detecting and editing extended properties Pin
Heath Stewart16-Dec-03 4:59
protectorHeath Stewart16-Dec-03 4:59 
Generalc# & pop_up menue Pin
amjadqaqa15-Dec-03 23:29
amjadqaqa15-Dec-03 23:29 
GeneralRe: c# & pop_up menue Pin
Member 26118815-Dec-03 23:46
Member 26118815-Dec-03 23:46 
GeneralC# & DOS Pin
15-Dec-03 21:20
suss15-Dec-03 21:20 
GeneralRe: C# & DOS Pin
Colin Angus Mackay15-Dec-03 22:18
Colin Angus Mackay15-Dec-03 22:18 

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.