- 博客(10)
- 资源 (1)
- 收藏
- 关注
原创 主窗体和子窗体之间的转换
其实就是把子窗体的FormClosing事件写在主窗体中 private void BtnFeedMaster_Click(object sender, EventArgs e) { //Feeder注册 Feeder_Master_Add Feeder_Master_Add = new Feeder_Master_Add
2017-11-02 17:46:07
589
原创 dataGridView动态加载行号
private void dataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e) { var dgv = (DataGridView)sender; if (dgv.RowHeadersVisible)
2017-11-02 17:43:29
371
原创 读取ini配置文件
using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Runtime.InteropServices;using System.Text;using System.Threading.Tasks;namespace Commonre
2017-11-02 17:41:58
387
原创 写入log事件
public static void Write_Log(string strLog,string type) { string sFilePath = System.AppDomain.CurrentDomain.BaseDirectory + "log"; string sFileName = type + ".log";
2017-11-02 17:40:48
334
原创 利用定点、句柄,去抓取其他程序的值
通过“钩子”去到要抓取的定点xy,并转换成句柄,然后通过api获取想要的值。代码如下1、首先定义一个MouseHook 类using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Runtime.InteropServices;usin
2016-05-13 16:49:48
1082
原创 C#读取XML文件,以及对XML文件的增删改查
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Xml;using System.Linq;using System.Text;using System.Windo
2015-07-23 10:46:31
617
原创 FTP 配置
1、 开始菜单中输入"打开或关闭",找到"打开或关闭Window功能"2、 在打开或关闭Window功能中到打“Internet信息服务”然后把FTP服务器和Web管理工具打上勾,然的确定3、 在打开菜单中搜索“IIS”,打开Internet信息服务(IIS)管理器,4、 进入Internet信息服务管理器,在网站上右击,点“添加FTPd站点”,5、 在添加FTP站点中输入
2015-07-13 15:14:44
564
原创 C#中,实现文件的移动
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Text;using System.IO;namespace ConsoleApplication5{ class Program {
2015-07-13 15:12:55
903
原创 通过XML格式,读取CSV文件
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Xml.Linq;using System.IO;namespace CSV读取{ class Program { static voi
2015-07-13 15:09:51
591
原创 c#实现动态悬浮窗代码(可用于检测)
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Sy
2015-07-13 14:00:08
1970
利用反射动态加载dll
2017-11-03
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅