12 2018 档案
摘要:private Bitmap Out1DImg() { // 1.设置条形码规格 EncodingOptions encodeOption = new EncodingOptions(); encodeOption.Height = 68; // 必须制定高度、宽度 enco...
阅读全文
摘要:this.printDocument1.PrinterSettings.PrinterName = "Microsoft XPS Document Writer"; this.printDocument1.Print(); //直接打印开始打印 (调用的是默认打印机)(系统会自动默认一个打印机)
阅读全文
摘要:this.ActiveControl = txt_core;
阅读全文
摘要:string PrintName = cmbPrinter.SelectedIndex.ToString(); PrintName = cmbPrinter.SelectedItem.ToString(); // if (cmbPrinter.SelectedIndex != 0) { ...
阅读全文
摘要:第一种 (全屏不可触发) protected override bool ProcessCmdKey(ref System.Windows.Forms.Message msg, System.Windows.Forms.Keys keyData) { int WM_KEYDOWN = 256; in
阅读全文
摘要:private void button2_Click(object sender, EventArgs e) { Process[] ProceddingCon = Process.GetProcesses(); //获得所有进程 IntPtr intPtr = IntPtr.Zero; foreach (...
阅读全文
摘要:来自: http://www.neite.net/516.html
阅读全文
摘要:var temp = System.DateTime.Today.ToString("dddd", new System.Globalization.CultureInfo("zh-CN"));
阅读全文
摘要:WebMVC\Views\Shared\_Layout.cshtml 每个页面_ 自动引用_ViewStart.cshtml
阅读全文
摘要:经发现, 数据库中保存时间格式数据 可以正常 排序, 数据中保存时间格式字符串 排序出现问题 /// <summary> /// 修改时间 /// </summary> public DateTime ModifyTime { get; set; } public string ModifyTime
阅读全文
摘要:select * from [LPicture] UPDATE [dbo].[LPicture] SET [picGroup] = '3213' WHERE LPictureid in(1,2); select * from LPicture where LPictureid not in ('') select * from LPicture where LPictureid n...
阅读全文
摘要:$("#btnAdd1").click(function () { console.log($("form").serialize()); var checkboxs = document.getElementsByName("checkbox[]"); var check_val = []; ...
阅读全文
摘要:var ele = ev.parentNode; var elem_child = ele.childNodes; for (var i = 0 in elem_child) { //遍历子元素数组 if (elem_child[...
阅读全文
摘要:var body = document.getElementsByTagName("body")[0]; body.addEventListener("mousemove", outpostion); function outpostion() { console.log("全局"+event.clientX + "/" + event.clientY);...
阅读全文
摘要:} catch (DbEntityValidationException ex) { message = "添加异常"; desc = " {" + ex.Message + "}"; logtype = "异常"; }...
阅读全文
摘要://去掉标题栏 1. this.FormBorderStyle = FormBorderStyle.None; // 不会显示窗体标题栏等相关 //最大化 2. this.WindowState = FormWindowState.Maximized; //窗体最大化时 非全屏 不会遮盖任务栏 设置
阅读全文
摘要:Access_Registry(key, "Adobe\\Acrobat Distiller\\DC"); //Adobe是自己要对某个程序注册表主目录 //HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Acrobat Distiller\DC //RunFromLocalDi
阅读全文
摘要:以上代码测试均失败, 最后, 直接删除表主键
阅读全文