How could I retrieve the filename of the dragdrop object when I drag a textfile into the richTextBox?Code:private void rtbInput_DragDrop(object sender, System.Windows.Forms.DragEventArgs e) { if (e.Data.GetDataPresent(DataFormats.Text)) { rtbInput.Text = e.Data.GetData(DataFormats.Text).ToString(); } else if(e.Data.GetDataPresent(DataFormats.FileDrop)) { ??? } }
thx!




Reply With Quote