![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c#
qq_19765517
这个作者很懒,什么都没留下…
展开
-
C# 代码增加组件
Button st_1 = new Button(); st_1.Text = "asas"; this.Controls.Add(st_1);原创 2021-02-01 08:50:23 · 576 阅读 · 0 评论 -
C# 常用函数功能
StreamWriter writer = new StreamWriter("C:\\aaa.txt"); writer.Write(string.Concat("aaa", Environment.NewLine)); writer.Write(string.Concat("bbb", Environment.NewLine)); writer.Close();原创 2020-07-04 08:31:24 · 221 阅读 · 0 评论 -
C# 操作 oracle数据库
1:先下载oracle的ODAC,然后安装里面的odp.net.2:引用odp.net.的Oracle.DataAccess.dll,并将文件添加到软件根目录。3:连接数据库代码string conStr = "User id=mes;password=ead;Data Source=10.127.1.1:1521/mesprd"; OracleConnection conn = new OracleConnection(conStr); try原创 2020-06-29 15:59:06 · 375 阅读 · 0 评论 -
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;namespace Wind...原创 2020-04-20 18:41:46 · 380 阅读 · 0 评论 -
C# sql
//包含头文件using System.Data.SqlClient;//连接数据库//连接sql数据库 public SqlConnection sql_open_wj() { string connString = "user id=sa;password=1234;Database=Z2WB;Connect Timeout=30;Server...原创 2020-02-24 11:38:11 · 138 阅读 · 0 评论 -
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 System.Ru...原创 2019-10-08 11:14:56 · 328 阅读 · 0 评论