文章分类 -  Csharp

摘要:关于MySQL设置远程访问 先登录数据库 进入命令提示符窗口后输入 mysql -uroot -p** (这里的星号改成你的数据库密码)点击Enter** 然后进入mysql文件,执行sql语句 输入 use mysql,点击Enter 输入 CREATE USER 'root'@'%' IDENT 阅读全文
posted @ 2024-05-30 11:28 $虫虫$ 阅读(11) 评论(0) 推荐(0) 编辑
摘要:VB 访问sql Server Private Sub btn_Conn_Click(sender As Object, e As EventArgs) Handles btn_Conn.Click Dim strconnection As String = "Server=.\SQLEXPRESS 阅读全文
posted @ 2024-05-29 15:55 $虫虫$ 阅读(4) 评论(0) 推荐(0) 编辑
摘要:关于SQL Server数据库服务器远程登录设置 1、 打开开始菜单中的SQL Server配置管理器 开启服务和配置网络协议 开启服务 网络配置:注意IP地址为本地地址(也可不设置,直接使用默认地址,但协议必须启用),端口号1433 2、客户端操作,先连接上服务器,然后对服务器进行设置 服务器属性 阅读全文
posted @ 2024-05-29 13:34 $虫虫$ 阅读(16) 评论(0) 推荐(0) 编辑
摘要:Navicat 访问 SQLServer# Navicat 版本:15.0.17-Premium SQLServer 版本:SQL Server 2019 连接名称:SQL Server (新建的实例名称,可自定义) 主机名:本地名称(.\SQLEXPRESS 本地用户(计算机名称)可用 “.” 代 阅读全文
posted @ 2024-05-29 09:17 $虫虫$ 阅读(5) 评论(0) 推荐(0) 编辑
摘要:region 数据导出 private void btn_Export_Click(object sender, EventArgs e) { SaveFileDialog saveFileDialog = new SaveFileDialog(); saveFileDialog.Filter = 阅读全文
posted @ 2024-05-11 17:01 $虫虫$ 阅读(14) 评论(0) 推荐(0) 编辑
摘要:private void btn_Save_Click(object sender, EventArgs e) { SaveFileDialog saveFileDialog = new SaveFileDialog(); saveFileDialog.Filter = "图片文件(*.jpg)|* 阅读全文
posted @ 2024-05-11 16:58 $虫虫$ 阅读(5) 评论(0) 推荐(0) 编辑
摘要:protected override CreateParams CreateParams { get { CreateParams paras = base.CreateParams; paras.ExStyle |= 0x02000000; return paras; } } 阅读全文
posted @ 2024-03-27 16:07 $虫虫$ 阅读(5) 评论(0) 推荐(0) 编辑
摘要:switch (variable.VarType.ToUpper()) { case "BOOL": variable.VarValue = BitLib.GetBitFrom2BytesArray(result.Content, start, offset, (DataFormat)device. 阅读全文
posted @ 2024-03-20 15:32 $虫虫$ 阅读(13) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 判断串口号是否存在 /// </summary> /// <param name="portName"></param> /// <returns></returns> private bool IsComExits(string portName) { //这个 阅读全文
posted @ 2024-03-20 13:15 $虫虫$ 阅读(2) 评论(0) 推荐(0) 编辑
摘要://一般通信连接读取数据时都是需要另开线程操作 CommMethods.plcDevice.Cts = new CancellationTokenSource(); Task.Run(new Action(() => { PLCCommunication(CommMethods.plcDevice) 阅读全文
posted @ 2024-03-20 12:45 $虫虫$ 阅读(18) 评论(0) 推荐(0) 编辑
摘要://双缓冲 this.SetStyle(ControlStyles.AllPaintingInWmPaint, true); this.SetStyle(ControlStyles.DoubleBuffer, true); this.SetStyle(ControlStyles.ResizeRedr 阅读全文
posted @ 2024-03-19 15:36 $虫虫$ 阅读(5) 评论(0) 推荐(0) 编辑
摘要:region 无边框移动 private Point mPoint; private void Panel_MouseDown(object sender, MouseEventArgs e) { mPoint = new Point(e.X, e.Y); } private void Panel_ 阅读全文
posted @ 2024-03-19 10:40 $虫虫$ 阅读(3) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示