摘要: 2020-03-16 每日一例第8天 1.新建窗体应用程序,拖入label/textbox/radiobutton控件,并改text值; 2.button控件输入代码; if (radioButton1.Checked) { textBox2.Text = textBox1.Text.ToUpper 阅读全文
posted @ 2020-03-16 23:41 winnerljs 阅读(4730) 评论(0) 推荐(0) 编辑
摘要: 2020-03-15 每日一例第8天 1.新建窗体应用程序,拖入label/textbox控件,并改text值; 2.textBox1的KeyPress属性,并输入代码; if (!Char.IsDigit(e.KeyChar)) { MessageBox.Show("请输入数字","提示",Mes 阅读全文
posted @ 2020-03-16 00:04 winnerljs 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 2020-03-14 每日一例第7天 1.新建窗体windowform,修改text值; 2.两个按钮后台代码: private void button1_Click(object sender, EventArgs e) { //转为字符串 textBox1.PasswordChar =(char 阅读全文
posted @ 2020-03-14 23:52 winnerljs 阅读(997) 评论(0) 推荐(0) 编辑
摘要: 2020-03-13 每日一例第6天 1.新建窗体windowform,修改text值; 2.找到mouseclick事件,填写代码; Random rm = new Random(); Button bt = new Button() { Text = "冬天按钮生成器", ForeColor = 阅读全文
posted @ 2020-03-13 23:58 winnerljs 阅读(478) 评论(0) 推荐(0) 编辑
摘要: 2020-03-12 每日一例第5天 1.添加按钮1和label、textbox控件,并修改相应的text值; 2.修改textBox1的TextChanged事件并输入代码; button1.Text = textBox1.Text;//赋值button文本 button1.AutoSize = 阅读全文
posted @ 2020-03-13 00:56 winnerljs 阅读(708) 评论(0) 推荐(0) 编辑
摘要: 2020-03-11 每日一例第4天 1.添加按钮1-6,并修改相应的text值; 2.窗体Load事件加载代码; private void Form1_Load(object sender, EventArgs e) { //前景色为红色 button1.ForeColor = Color.Red 阅读全文
posted @ 2020-03-11 23:57 winnerljs 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 2020-03-11 每日一例第3天 1.设置父窗体属性;IsMdicontainer设置成true; 2.拖入menustrip控件,修改标题栏中的text文字。 3.点击“加载子窗体”设置代码: Form frm1 = new Form(); frm1.MdiParent = this; frm 阅读全文
posted @ 2020-03-10 00:05 winnerljs 阅读(1201) 评论(0) 推荐(0) 编辑
摘要: 1.新建父窗体,设置窗体属性:IsMdicontainer设置成true; 2.拖入button控件,修改button中的text。 3.点击button控件设置代码: //1.窗体实例化 Form frm = new Form(); //2.设置所属父窗体 frm.MdiParent = this 阅读全文
posted @ 2020-03-08 23:51 winnerljs 阅读(1200) 评论(0) 推荐(0) 编辑
摘要: select stuff((select ','+行名 from 表名 for xml path('')),1,1,'') 阅读全文
posted @ 2019-08-01 11:11 winnerljs 阅读(392) 评论(0) 推荐(0) 编辑
摘要: SqlServer: select name from sysobjects where xtype='TR' --所有触发器select name from sysobjects where xtype='P' --所有存储过程select name from sysobjects where x 阅读全文
posted @ 2019-08-01 10:28 winnerljs 阅读(3128) 评论(0) 推荐(0) 编辑