摘要: 试了好多种,这个方法蛮好用的。有更好的,希望大家多多指教。 Dim ProNo As Integer, ProStr As String ProNo = IsRunning("SSS.exe") If ProNo = 0 Then Shell App.path & "\SSS.exe '" & st 阅读全文
posted @ 2021-03-08 15:19 它的眼角开过光 阅读(472) 评论(0) 推荐(0)
摘要: 一日一记防老年痴呆之———— 在窗口程序中desigener设计器中重写。 using System.Windows.Forms; protected override void WndProc(ref Message m) { const int WM_SYSCOMMAND = 0x0112; c 阅读全文
posted @ 2021-03-08 11:09 它的眼角开过光 阅读(217) 评论(0) 推荐(0)
摘要: 很简单的东西,但是经常忘记,记在这儿吧,下次要用直接过来复制粘贴。 DialogResult dr = MessageBox.Show("连打工单" + list[j].SO + "尚未到达补料时间!补料时间为:" + sdtcrefill, "标题", MessageBoxButtons.OKCa 阅读全文
posted @ 2021-03-04 15:16 它的眼角开过光 阅读(659) 评论(0) 推荐(0)
摘要: //HashSet检查数组是否重复 HashSet<string> hs = new HashSet<string>(); for (int j = 1; j <= SN.Count; j++) { if (hs.Contains(SN[j-1])) { MessageBox.Show("条码标签" 阅读全文
posted @ 2021-03-02 11:19 它的眼角开过光 阅读(291) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System. 阅读全文
posted @ 2021-03-02 11:17 它的眼角开过光 阅读(1203) 评论(0) 推荐(0)
摘要: for (int i = 0; i < dtd.Rows.Count; i++) { //生成字符串 ItemModel dt = new ItemModel(); dt.action = "绑定"; dt.facility = list[j].Facility; dt.hSerial = dtID 阅读全文
posted @ 2021-02-22 11:24 它的眼角开过光 阅读(74) 评论(0) 推荐(1)
摘要: 恢复内容开始 USE [***]--数据库 GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER TRIGGER [dbo].[triTable1Update] ON [dbo].[Table1] AFTER UPDATE AS --if 阅读全文
posted @ 2020-12-23 11:16 它的眼角开过光 阅读(70) 评论(0) 推荐(0)
摘要: USE [***]--数据库更新 GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TRIGGER [dbo].[triTable1Update] ON [dbo].[Table1] AFTER UPDATE AS --if @@r 阅读全文
posted @ 2020-11-24 13:36 它的眼角开过光 阅读(83) 评论(0) 推荐(0)
摘要: select t1.id from table1 t1 where tbl1.id not in (select t2.id from table2 t2); t1有9万条数据,t2有3万条数据 使用not exists 代替 not in select t1.id from table1 t1 w 阅读全文
posted @ 2020-10-27 08:55 它的眼角开过光 阅读(649) 评论(0) 推荐(0)
摘要: 1 .net 2 private void txtIDFromPrint_KeyPress(object sender, KeyPressEventArgs e) 3 { 4 if (e.KeyChar == '\r') 5 { 6 txtIDToPrint.Focus(); 7 } 8 } 9 V 阅读全文
posted @ 2020-10-24 15:59 它的眼角开过光 阅读(737) 评论(0) 推荐(0)