Click here to Skip to main content
16,007,885 members
Home / Discussions / C#
   

C#

 
GeneralRe: a thread question Pin
Tom Larsen29-Dec-04 10:39
Tom Larsen29-Dec-04 10:39 
GeneralVector-Based Application Pin
el_zeeyed29-Dec-04 3:21
el_zeeyed29-Dec-04 3:21 
GeneralRe: Vector-Based Application Pin
Heath Stewart29-Dec-04 9:10
protectorHeath Stewart29-Dec-04 9:10 
GeneralAsynchronous socket programming - threading design question Pin
Adam Goossens29-Dec-04 2:31
Adam Goossens29-Dec-04 2:31 
GeneralRe: Asynchronous socket programming - threading design question Pin
Robert Rohde29-Dec-04 2:40
Robert Rohde29-Dec-04 2:40 
GeneralRe: Asynchronous socket programming - threading design question Pin
Stefan Troschuetz29-Dec-04 7:36
Stefan Troschuetz29-Dec-04 7:36 
GeneralRe: Asynchronous socket programming - threading design question Pin
Adam Goossens29-Dec-04 14:37
Adam Goossens29-Dec-04 14:37 
GeneralDoDragDrop problem Pin
Marc Clifton29-Dec-04 2:16
mvaMarc Clifton29-Dec-04 2:16 
The following code snippet:

private void OnMouseMove(object sender, MouseEventArgs e)
{
  if (dragging)
  {
    string[] filenames=new string[] {dragImageFilename};
    DataObject data=new DataObject(DataFormats.FileDrop, filenames);
    ((Control)sender).DoDragDrop(data, DragDropEffects.Copy);
    dragging=false;
  }
}


Behaves strangely. If I drop the object on the originating form (something I'm going to disallow later) then the DragEventArgs.Data is of type SystemWindows.Forms.DataObject and all is happy.

If I drag the object onto another instance of the exact same application, then DragEventArgs.Data is of type System.__ComObject.

The code that handles the drop does this:

Array data=((DataObject)e.Data).GetData("FileDrop") as Array;


Expecting a DataObject for e.Data. How do send/receive the data so that it's a DataObject and not a ComObject?

Thanks!

Marc

MyXaml
Advanced Unit Testing
GeneralRe: DoDragDrop problem Pin
Robert Rohde29-Dec-04 2:55
Robert Rohde29-Dec-04 2:55 
GeneralRe: DoDragDrop problem Pin
Marc Clifton29-Dec-04 3:26
mvaMarc Clifton29-Dec-04 3:26 
Generaltime between points Pin
gerstla29-Dec-04 2:14
gerstla29-Dec-04 2:14 
GeneralRe: time between points Pin
Adam Goossens29-Dec-04 2:50
Adam Goossens29-Dec-04 2:50 
GeneralWinforms Pin
| Muhammad Waqas Butt |29-Dec-04 1:35
professional| Muhammad Waqas Butt |29-Dec-04 1:35 
GeneralCrystal Report Pin
| Muhammad Waqas Butt |29-Dec-04 1:00
professional| Muhammad Waqas Butt |29-Dec-04 1:00 
GeneralRe: Crystal Report Pin
Michael P Butler29-Dec-04 1:39
Michael P Butler29-Dec-04 1:39 
GeneralNumber to Word Pin
| Muhammad Waqas Butt |29-Dec-04 0:57
professional| Muhammad Waqas Butt |29-Dec-04 0:57 
GeneralRe: Number to Word Pin
Marc Clifton29-Dec-04 3:11
mvaMarc Clifton29-Dec-04 3:11 
Generalchanging row color in a datagrid Pin
Salmanzz28-Dec-04 19:47
Salmanzz28-Dec-04 19:47 
GeneralRe: changing row color in a datagrid Pin
Identity Undisclosed28-Dec-04 20:25
Identity Undisclosed28-Dec-04 20:25 
GeneralRe: changing row color in a datagrid Pin
Robert Rohde28-Dec-04 22:08
Robert Rohde28-Dec-04 22:08 
GeneralAutonumber is not showing up in the child table Pin
msogun28-Dec-04 18:16
msogun28-Dec-04 18:16 
GeneralRe: "This row already belongs to this table." Pin
Robert Rohde28-Dec-04 22:05
Robert Rohde28-Dec-04 22:05 
Generalread a .xsd file and write it on a xml file with data's automatically written Pin
dhol28-Dec-04 16:55
dhol28-Dec-04 16:55 
Generalscreen capture using WMEncoder Pin
Member 161799928-Dec-04 13:11
Member 161799928-Dec-04 13:11 
GeneralCapture the Fn key on a laptop Pin
sparker6228-Dec-04 9:31
sparker6228-Dec-04 9:31 

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.