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

推荐订阅源

AI
AI
TaoSecurity Blog
TaoSecurity Blog
H
Heimdal Security Blog
Help Net Security
Help Net Security
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Microsoft Azure Blog
Microsoft Azure Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Google DeepMind News
Google DeepMind News
爱范儿
爱范儿
The Cloudflare Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
人人都是产品经理
人人都是产品经理
大猫的无限游戏
大猫的无限游戏
N
News | PayPal Newsroom
V2EX - 技术
V2EX - 技术
博客园 - 【当耐特】
D
Darknet – Hacking Tools, Hacker News & Cyber Security
S
Secure Thoughts
C
CERT Recently Published Vulnerability Notes
罗磊的独立博客
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Privacy & Cybersecurity Law Blog
有赞技术团队
有赞技术团队
S
Schneier on Security
S
SegmentFault 最新的问题
Google Online Security Blog
Google Online Security Blog
H
Hacker News: Front Page
The Last Watchdog
The Last Watchdog
Schneier on Security
Schneier on Security
PCI Perspectives
PCI Perspectives
IT之家
IT之家
Project Zero
Project Zero
博客园 - 司徒正美
P
Privacy International News Feed
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Jina AI
Jina AI
Security Latest
Security Latest
Hacker News - Newest:
Hacker News - Newest: "LLM"
腾讯CDC
C
CXSECURITY Database RSS Feed - CXSecurity.com
阮一峰的网络日志
阮一峰的网络日志
C
Check Point Blog
aimingoo的专栏
aimingoo的专栏
V
Vulnerabilities – Threatpost
W
WeLiveSecurity
NISL@THU
NISL@THU
Webroot Blog
Webroot Blog
N
Netflix TechBlog - Medium
L
Lohrmann on Cybersecurity

博客园 - 小 强

小题大做之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 { }
}