惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
V
Visual Studio Blog
P
Privacy International News Feed
月光博客
月光博客
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
L
Lohrmann on Cybersecurity
N
News and Events Feed by Topic
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Apple Machine Learning Research
Apple Machine Learning Research
阮一峰的网络日志
阮一峰的网络日志
Webroot Blog
Webroot Blog
T
Threatpost
宝玉的分享
宝玉的分享
The Last Watchdog
The Last Watchdog
小众软件
小众软件
L
LINUX DO - 最新话题
C
Cisco Blogs
T
Troy Hunt's Blog
Schneier on Security
Schneier on Security
酷 壳 – CoolShell
酷 壳 – CoolShell
www.infosecurity-magazine.com
www.infosecurity-magazine.com
雷峰网
雷峰网
G
GRAHAM CLULEY
有赞技术团队
有赞技术团队
Know Your Adversary
Know Your Adversary
博客园 - 叶小钗
罗磊的独立博客
V
V2EX
博客园 - Franky
P
Proofpoint News Feed
SecWiki News
SecWiki News
腾讯CDC
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Jina AI
Jina AI
博客园 - 三生石上(FineUI控件)
S
Secure Thoughts
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Google DeepMind News
Google DeepMind News
Attack and Defense Labs
Attack and Defense Labs
人人都是产品经理
人人都是产品经理
The Cloudflare Blog
PCI Perspectives
PCI Perspectives
V2EX - 技术
V2EX - 技术
Google DeepMind News
Google DeepMind News
Last Week in AI
Last Week in AI
aimingoo的专栏
aimingoo的专栏
Cisco Talos Blog
Cisco Talos Blog
N
News and Events Feed by Topic
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
S
SegmentFault 最新的问题

博客园 - 小 强

小题大做之MySQL 5.0存储过程编程入门 车票,转让,杭州,武汉,2月3号[已过期] 2007即将过去,我很怀念它,2008 小强年,我很期待 附加数据库,并且迁移用户的方法 [收藏]ContentType类型大全 - 小 强 - 博客园 ASP.NET 1.1 Web Application Compilation and Pre-compilation 解决访问局域网内共享目录需要登陆的问题 [收藏]通过命令的方式调用系统的小工具 [收藏]Do All in Cmd Shell 解决文件无法上传的问题,错误信息:System.IO.DirectoryNotFoundException: Could not find a part of the path. 远程连接SQL Sever2000出错,1433端口未开放的解释 通过调用系统API获得网卡真实MAC地址 如何添加IE右键菜单 [收藏]DOS 命令大全 查找目录下某特定后缀名的文件的简单方法 用GB2312编码写文件 [转载] Windows Forms 实现安全的多线程详解 准备看的关于多线程的文章(临时记录) C#文件重命名的方法
C#拖放操作获得文件名
小 强 · 2006-05-18 · via 博客园 - 小 强

设置窗体的AllowDrop=True;

private void Form1_DragEnter(object sender, DragEventArgs e) {
  
if (e.Data.GetDataPresent( DataFormats.Text ))
    e.Effect 
= DragDropEffects.Link;
  
else 
    e.Effect 
= DragDropEffects.None; 
}


private void Form1_DragDrop(object sender, DragEventArgs e) {
  
try {
    
this.textBox1.Text = ((System.Array)e.Data.GetData( DataFormats.FileDrop )).GetValue( 0 ).ToString();
  }
 catch { }
}