Hello!

When I start my app two times and try to drag a bitmap from one to the
other I have a problem. The object I get is type of TransparentProxy. Well,
I can cast to Bitmap but when reading a property from that object I get
following message:

"This remoting proxy has no channel sink which means either the server has
no registered server channels that are listening, or this application has
no suitable client channel to talk to the server."

My code when starting Drag&Drop:

     Bitmap bitmap = new Bitmap(200, 200);
     ...
     DataObject dataObject2 = new DataObject();
     dataObject2.SetData(DataFormats.Bitmap, true, bitmap);
     this.DoDragDrop(dataObject2, DragDropEffects.Copy);

My code in MyApp_DragEnter():

     Bitmap obj = e.Data.GetData(typeof(Bitmap)) as Bitmap;
     if (obj != null)
     {
         int height = obj.Height;  // -> Error
     }

What I really want is to drop and show a bitmap.
When dragging into Word (Ver.9) it's not working too. So I think I must do
something before calling the method DoDragDrop().

Thank you,
Chris

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to