I post some code..
private void listBox1_DragDrop(object sender, DragEventArgs e) { Array a = (Array)e.Data.GetData(DataFormats.FileDrop);
if (a != null) { // if i execute the activeX in a windows Form the a.Length property value is the exact number of file that i have selected // if i execute the activeX in a web Form the a.Length property value is always 1 for (int i =0 ; i< a.Length; i++) { string s = a.GetValue(i).ToString();
if (!listBox1.Items.Contains(s)) { string filename = System.IO.Path.GetFileName(s); listBox1.Items.Add(filename); } } } }
Anyone knows why in web Form The value of a.Length is Always 1?