
how can I drag a file to an exe I create (drag and drop over the Icon) and have it as an argument when the exe start running
By: a guest on
Feb 26th, 2012 | syntax:
None | size: 0.33 KB | hits: 21 | expires: Never
public frmMain()
{
this. richTextBox1.DragDrop += new System.Windows.Forms.DragEventHandler(arg);
}
private void richTextBox1_DragEnter(object sender,
System.Windows.Forms.DragEventArgs e)
{
if (e.Data.GetDataPresent(DataFormats.Text))
e.Effect = DragDropEffects.Copy;
else
e.Effect = DragDropEffects.None;
}