资源简介
根据鼠标光标位置动态移动生成的图标
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApp2 {
public partial class AddDeviceForm : Form {
//public event EventHandler GetValue;
public delegate void AAAA(int a int a1string b1);
public event AAAA eventAAA;
public AddDeviceForm() {
InitializeComponent();
this.FormClosed += AddDeviceForm_FormClosed;
}
private void AddDeviceForm_FormClosed(object sender FormClosedEventArgs e) {
//int s = Convert.ToInt32(this.textBox1.Text);
//int s1 = Convert.ToInt32(this.textBox2.Text);
//string f = file;
//if (GetValue != null) {
// GetValue(s + “_“ + f e);
//}
//if (eventAAA != null) {
// eventAAA(ss1f);
//}
}
private string file;
private void buttonOK_Click(object sender EventArgs e) {
//判断文件是否选择、时间是否有问题、存数据库
if (eventAAA != null) {
eventAAA(100 100 file);
}
}
private void buttonCancel_Click(object sender EventArgs e) {
}
private void button1_Click(object sender EventArgs e) {
OpenFileDialog fileDialog = new OpenFileDialog();
fileDialog.Multiselect = true;
fileDialog.title = “请选择文件“;
file = string.Empty;
if (fileDialog.ShowDialog() == DialogResult.OK) {
file = fileDialog.FileName;//返回文件的完整路径
}
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2020-12-24 14:49 WindowsFormsApp2\
目录 0 2020-12-24 14:49 WindowsFormsApp2\.vs\
目录 0 2020-12-24 14:49 WindowsFormsApp2\.vs\WindowsFormsApp2\
目录 0 2020-12-24 14:49 WindowsFormsApp2\.vs\WindowsFormsApp2\v15\
文件 54784 2021-01-04 17:16 WindowsFormsApp2\.vs\WindowsFormsApp2\v15\.suo
目录 0 2020-12-24 14:49 WindowsFormsApp2\.vs\WindowsFormsApp2\v15\Server\
目录 0 2020-12-24 14:49 WindowsFormsApp2\.vs\WindowsFormsApp2\v15\Server\sqlite3\
目录 0 2020-05-29 17:02 WindowsFormsApp2\.vs\WindowsFormsApp2\v16\
文件 75776 2020-05-15 14:24 WindowsFormsApp2\.vs\WindowsFormsApp2\v16\.suo
目录 0 2020-12-24 14:49 WindowsFormsApp2\WindowsFormsApp2\
文件 1153 2020-05-12 17:36 WindowsFormsApp2\WindowsFormsApp2.sln
文件 1579 2020-05-15 14:07 WindowsFormsApp2\WindowsFormsApp2\AddDeviceForm.cs
文件 16639 2020-05-15 11:44 WindowsFormsApp2\WindowsFormsApp2\AddDeviceForm.Designer.cs
文件 6025 2020-05-15 11:43 WindowsFormsApp2\WindowsFormsApp2\AddDeviceForm.resx
文件 187 2020-05-12 17:36 WindowsFormsApp2\WindowsFormsApp2\App.config
目录 0 2020-12-24 14:49 WindowsFormsApp2\WindowsFormsApp2\bin\
目录 0 2020-12-24 14:49 WindowsFormsApp2\WindowsFormsApp2\bin\Debug\
文件 20480 2021-01-04 17:16 WindowsFormsApp2\WindowsFormsApp2\bin\Debug\WindowsFormsApp2.exe
文件 187 2020-05-12 17:36 WindowsFormsApp2\WindowsFormsApp2\bin\Debug\WindowsFormsApp2.exe.config
文件 44544 2021-01-04 17:16 WindowsFormsApp2\WindowsFormsApp2\bin\Debug\WindowsFormsApp2.pdb
文件 71 2020-05-13 17:40 WindowsFormsApp2\WindowsFormsApp2\delegateTestRun.cs
文件 266 2020-05-17 17:01 WindowsFormsApp2\WindowsFormsApp2\DeviceInfo.cs
文件 4211 2020-05-17 17:25 WindowsFormsApp2\WindowsFormsApp2\Form1.cs
文件 3096 2020-05-15 13:44 WindowsFormsApp2\WindowsFormsApp2\Form1.Designer.cs
文件 5817 2020-05-15 13:44 WindowsFormsApp2\WindowsFormsApp2\Form1.resx
目录 0 2020-12-24 14:49 WindowsFormsApp2\WindowsFormsApp2\obj\
目录 0 2020-12-24 14:49 WindowsFormsApp2\WindowsFormsApp2\obj\Debug\
文件 1423 2020-05-15 11:39 WindowsFormsApp2\WindowsFormsApp2\obj\Debug\DesignTimeResolveAssemblyReferences.cache
文件 7491 2020-05-15 16:08 WindowsFormsApp2\WindowsFormsApp2\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
文件 0 2020-05-15 15:18 WindowsFormsApp2\WindowsFormsApp2\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
文件 0 2020-05-15 15:18 WindowsFormsApp2\WindowsFormsApp2\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
............此处省略23个文件信息
- 上一篇:C#开发 CAD 编程基础
- 下一篇:C#上位机电表数据采集
相关资源
- winform 界面图片轮播效果
- panel内容打印(图片打印)
- MVC图片上传实例58438
- c#车牌识别系统附30张测试图片
- C#圆形按钮,非常漂亮动态~~
- 安卓和asp.net通过webservice上传图片到服
- C#绘图和图片放大缩小等功能代码
- winform图片标尺,画矩形
- C# PDF转图片
- C#做的一个图片浏览器源码
- 大图找小图 C#图片对比高速找图源码
- c# 图像旋转 winform 窗体 图片转动
- C#制作天气预报根据城市不同动态得获
- SQLserver+C#实现的KTV点歌系统 有数据库
- C#在中国地图上动态标记指定省的背景
- ASP.NET(c#) 从零动态生成Word文件用程
- C#在图片中写入文字
- 用c#将pdf文件转换成图片文件
- C#源码:批量自动去除图片白边
- WinForm 实现图片滚动
- unity 键鼠控制摄像机移动 脚本
- winform chart动态跟进式折线图
- 旅游动态网站系统前后台完整
- ASP.NET+SQL Server动态网站开发从基础到
- C# 从内存加载动态链接库
- C# 图片管家
- WPF 3D图片触摸屏滑动效果(苹果浏览
- C#生成PDF 读取PDF文本内容 获取PDF内图
- Dreamweaver+ASP.NET动态网站设计与典型
- 超漂亮带音乐的C#俄罗斯方块源代码能
评论
共有 条评论