摘要: private void button1_Click_1(object sender, EventArgs e) { Form2 form = new Form2(); form.FormBorderStyle = FormBorderStyle.None; form.TopLevel = false; ... 阅读全文
posted @ 2019-02-21 21:43 崇尚技术 阅读(324) 评论(0) 推荐(0)
摘要: //遍历TextBox控件 foreach (Control item in this.Controls) { if (item is TextBox) { item.Text = ""; } } 阅读全文
posted @ 2019-02-20 22:46 崇尚技术 阅读(1648) 评论(0) 推荐(0)
摘要: 序列化对象 public string SerializeObject(object obj) { IFormatter formatter = new BinaryFormatter(); string result = string.Empty; using (MemoryStream stream = new MemoryStream(... 阅读全文
posted @ 2019-02-17 14:13 崇尚技术 阅读(143) 评论(0) 推荐(0)
摘要: 简单点的数据表: 实体类: using System;using System.Collections.Generic;using System.Linq;using System.Text; namespace 省市联动{ public class tblArea { public int AreaId { get; set; } public st... 阅读全文
posted @ 2019-02-13 14:32 崇尚技术 阅读(280) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data.SqlCli... 阅读全文
posted @ 2019-02-13 11:10 崇尚技术 阅读(373) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.Data.SqlClient;using System.Configuration; namespace _001{ public static class SqlHe... 阅读全文
posted @ 2019-02-13 11:09 崇尚技术 阅读(322) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-02-13 11:08 崇尚技术 阅读(175) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text; namespace _001{ public class tbusers { public string loginid { get; set; } public string loginpwd ... 阅读全文
posted @ 2019-02-13 11:07 崇尚技术 阅读(141) 评论(0) 推荐(0)
摘要: 刚装上win 10 1803,兴高采烈,准备装上相关的应用尝个新鲜,访问文件共享,\\fileserver,问题出现了, 提示很明显,装上SMB1协议了。 可惜,费尽九牛二虎之力,就是装不上,错误提示如下: 实在没招了,无非就是系统找不到安装源,此时,脑海闪现dism,于是: 在启用该系统功能之前, 阅读全文
posted @ 2018-08-21 16:50 崇尚技术 阅读(10873) 评论(0) 推荐(1)