日期:2014-05-18  浏览次数:20948 次

关于拖拽下载功能
FORM里用了2个控件 treeView和dataGridView。
treeView中列出了本地磁盘目录
dataGridView中列出了远程FTP文件
怎么把dataGridView中的文件拖拽到treeView实现下载?
下载问题我会,主要是问下怎样实现拖拽。
有条件的请给点具体代码,小弟新手,谢谢

------解决方案--------------------
System.Net.WebClient client = new System.Net.WebClient();
string filePath \\本地路径
if (!File.Exists(filePath))
{
client.DownloadFile(下载路径,filePath);
}

CellMoveDown事件中执行下载的代码,再根据列表刷新树