摘要: Indexof(Char C): 找到第一个字符c的index,如果没找到返回-1 Indexof(string str): 找到str的index,如果没找到返回-1 LastIndexof(string str): 返回当前字符或字符串的最后一个匹配项位置 阅读全文
posted @ 2020-11-03 09:07 向前追起 阅读(9971) 评论(0) 推荐(0) 编辑
摘要: C# 弹出确定、取消窗口 if (MessageBox.Show("确定要退出吗?", "", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.Cancel) {} MessageBoxButtons mess 阅读全文
posted @ 2020-09-11 08:54 向前追起 阅读(1036) 评论(0) 推荐(0) 编辑
摘要: 本文转载http://www.cnblogs.com/zfanlong1314/p/3874910.html 1、多条件搜索时,使用List集合来拼接条件(拼接Sql) #region 多条件搜索时,使用List集合来拼接条件(拼接Sql) StringBuilder sql = new Strin 阅读全文
posted @ 2020-07-27 15:56 向前追起 阅读(824) 评论(0) 推荐(0) 编辑
摘要: 1。设置父窗体 在待设父窗体的【属性】中,将IsMdiContainer属性设置为True即可。 2、判断父窗口是否已经打开 /// <summary> /// 判断父窗口是否已经打开 /// </summary> /// <param name="formParent"></param> /// 阅读全文
posted @ 2020-07-25 15:55 向前追起 阅读(526) 评论(0) 推荐(0) 编辑
摘要: private void GetPrinte() { System.Drawing.Printing.PrintDocument print = new System.Drawing.Printing.PrintDocument(); string sDefault = print.PrinterS 阅读全文
posted @ 2020-07-14 08:42 向前追起 阅读(423) 评论(0) 推荐(0) 编辑
摘要: 1. 常用属性设置 -外观 FullRowSelect: True //选中整行 GridLines: True //显示网格线 View: Details 2. 选中整行触发的事件 ItemSelectionChanged 在该事件函数中可以使用 mylistView.FocusedItem来引用 阅读全文
posted @ 2020-07-13 14:59 向前追起 阅读(316) 评论(0) 推荐(0) 编辑
摘要: Sql Prompt Unable to connect to the Redgate Client Service 今天在使用SQLPrompt时,突然发现所有的提示都不能用了,在百度上搜索无果,刚刚在Google搜索,果然找到了自己想要的答案,今天把搜索的结果发布在此,希望能够帮助到有需要的朋友 阅读全文
posted @ 2020-07-02 14:54 向前追起 阅读(1017) 评论(0) 推荐(0) 编辑
摘要: 数据库的事务日志已满,起因为"LOG_BACKUP" 问题描述:数据库“DatabaseName”的事务日志已满,起因为"LOG_BACKUP"。 解决方法:1).选择数据库–属性—选项—恢复模式–选择简单。2).收缩数据库后,再调回完整。 --设置简单模式 USE[master] GO ALTER 阅读全文
posted @ 2020-06-30 08:58 向前追起 阅读(1851) 评论(0) 推荐(0) 编辑
摘要: 选择文件文件对话框: //选择文件文件对话框 OpenFileDialog dialog = new OpenFileDialog(); //是否支持多个文件的打开?dialog.Multiselect = false;//标题dialog.Title = "请选择图片";//文件类型dialog. 阅读全文
posted @ 2020-06-29 11:13 向前追起 阅读(1444) 评论(0) 推荐(0) 编辑
摘要: //绑定标题 dataGriSFC.Columns[0].HeaderText = "工单号"; //绑定数据源属性名 dataGriSFC.Columns[0].DataPropertyName = "WONO"; 阅读全文
posted @ 2020-06-27 15:19 向前追起 阅读(767) 评论(0) 推荐(0) 编辑