Hi, I'm using an embedded usercontrol in a web form to be able to drag files from the windows explorer. I handel the dragdrop event with the following code private void UserControl1_DragDrop(object sender, System.Windows.Forms.DragEventArgs e) { string[] files = (string[])e.Data.GetData( DataFormats.FileDrop, true ); foreach( string file in files ) { // do something } } The problem is that theres always just one file. If i use the control on a ordinary windows form i get all the files i drag onto the control. I'm thankful for any advice.
M
mesmer
@mesmer
Posts
-
Drag and drop in embedded usercontrol -
Accessing a method in another fileIf both your classes are in the same namespace, simply create an instance of your class and make a call to the method ... XMLWriter myObject = new XMLWriter(); myObject.WritingToXMLDoc("elementString", "writeToXMLDoc"); ... I'm not sure if im on the right path here but i hope it helps
-
Semi modal dialog?Hi there, I would like to show a modal dialog and still be able to close/minimize/maximize my main form. Is there a way to accomplish this? I'm thankful for your help.