zoukankan
html css js c++ java
winform(C#)拖拽实现获得文件路径
设置Form的
AllowDrop
为true
private
void
Form1_DragDrop(
object
sender, DragEventArgs e)
{
string
path
=
((System.Array)e.Data.GetData(DataFormats.FileDrop)).GetValue(
0
).ToString();
MessageBox.Show(path);
}
private
void
Form1_DragEnter(
object
sender, DragEventArgs e)
{
if
(e.Data.GetDataPresent(DataFormats.FileDrop))
e.Effect
=
DragDropEffects.Link;
else
e.Effect
=
DragDropEffects.None;
}
查看全文
相关阅读:
居敬持志
测试内容
TestMarkDown
git
面试题
兼容的可视区高度和宽度
JS(数据类型、预解析、闭包、作用域、this)
JavaScript new 一个构造函数
Windows下gm打水印老是报gm convert: Unable to read font (n019003l.pfb)问题
如何开始一个vue+webpack项目
原文地址:https://www.cnblogs.com/ahuo/p/1164028.html
最新文章
[Sublime]Sublime安装以及插件使用
[tensorflow]图像处理相关模块的安装(python3中PIL)
[MNIST数据集]输入图像的预处理
模版结构体数组的应用
GridView获取当前行
弹出JS提示框
四舍五入保留两位小数
改变背景颜色
SP_APPROVALSET_OVERTIME 插入單據
ORACLE_簽核PROC帶游標
热门文章
ORACLE 學習筆記
C#开发中使用Npoi操作excel实例代码
Checked ==true ? "Y":"N" ;
oracle decode(nvl(estimate_qty,0),0,1,estimate_qty) 函數
Ubuntu安装JDK
oracle常用设置
PL/SQL developer安装
javaJava访问修饰符
Sass笔记
Sublime Text 常用设置
Copyright © 2011-2022 走看看