随笔分类 -  C#

(C#)监听剪贴板
摘要:public partial class Form1 : Form { public Form1() { InitializeComponent(); AddClipboardFormatListener(this.Handle); } protected override void WndProc 阅读全文

posted @ 2022-08-15 05:23 PER10 阅读(729) 评论(0) 推荐(0)

(Windows7)Visual Studio 2017编译运行出现脚本错误的解决方法
摘要:https://www.cnblogs.com/huangcong/p/8884947.html 阅读全文

posted @ 2019-09-16 15:19 PER10 阅读(806) 评论(0) 推荐(0)

(常用)C#获取sql查询所返回的字段值
摘要:qlConnection conn = new SqlConnection(conn_str); conn.Open(); string sql = "select used_number from pipeline_Number"; SqlCommand cmd = new SqlCommand(sql, conn); SqlDataReader rdr = cmd.ExecuteReader( 阅读全文

posted @ 2019-08-26 17:36 PER10 阅读(4614) 评论(0) 推荐(0)

(常用)C# 连接数据库进行增删查改的基本模板
摘要:string conn_str = @"Server=(local); database = YJ_Database; User id = sa; Password = 123456"; SqlConnection conn = new SqlConnection(conn_str); conn.Open(); string... 阅读全文

posted @ 2019-08-26 12:40 PER10 阅读(263) 评论(0) 推荐(0)

导航