2022年9月27日
摘要: regedit 打开HKEY_LOCAL_MACHINE/System/CurrentControlSet/Control/Print键。创建一个新的DWORD-32位值,将其命名为 “RpcAuthnLevelPrivacyEnabled”,将该键值设置为0。 重启电脑 PS:来源网络 阅读全文
posted @ 2022-09-27 14:53 没有你我无法微笑 阅读(3187) 评论(0) 推荐(0) 编辑
  2012年10月19日
摘要: WindowsFormsApplication34.Class1.form2.TopLevel = false;WindowsFormsApplication34.Class1.form2.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;WindowsFormsApplication34.Class1.form2.Dock = DockStyle.Fill;this.splitContainer1.Panel2.Controls.Add(WindowsFormsApplication34.Class1.form2);Win 阅读全文
posted @ 2012-10-19 17:34 没有你我无法微笑 阅读(228) 评论(0) 推荐(0) 编辑
  2012年10月11日
摘要: 一、程序控制创建Chartareafor(int i=0;i<2;i++){ChartArea newchartarea = new ChartArea();newchartarea.Name = i.ToString();chart1.ChartAreas.Add(newchartarea);}二、图表对应chart1.Series[(i - 1).ToString()].ChartArea = (i - 1).ToString();chart1.Series[(i - 2).ToString()].ChartArea = (i - 2).ToString();三、设置series的类 阅读全文
posted @ 2012-10-11 14:41 没有你我无法微笑 阅读(778) 评论(0) 推荐(0) 编辑
  2012年9月10日
摘要: C#追加文件 StreamWriter sw = File.AppendText(Server.MapPath(".")+"//myText.txt"); sw.WriteLine("追逐理想"); sw.WriteLine("kzlll"); sw.WriteLine(".NET笔记"); sw.Flush(); sw.Close();C#拷贝文件 string OrignFile,NewFile; OrignFile = Server.MapPath(".")+" 阅读全文
posted @ 2012-09-10 16:28 没有你我无法微笑 阅读(273) 评论(0) 推荐(0) 编辑
摘要: FFFFFF#DDDDDD#AAAAAA#888888#666666#444444#000000#FFB7DD#FF88C2#FF44AA#FF0088#C10066#A20055#8C0044#FFCCCC#FF8888#FF3333#FF0000#CC0000#AA0000#880000#FFC8B4#FFA488#FF7744#FF5511#E63F00#C63300#A42D00#FFDDAA#FFBB66#FFAA33#FF8800#EE7700#CC6600#BB5500#FFEE99#FFDD55#FFCC22#FFBB00#DDAA00#AA7700#886600#FFFFBB 阅读全文
posted @ 2012-09-10 15:53 没有你我无法微笑 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 1,首先导入命名空间:using System.Runtime.InteropServices;2,声明API函数 [DllImport("kernel32")] private static extern long WritePrivateProfileString(string section, string key, string val, string filePath);3,创建ini文件path = Application.StartupPath + "\\ClientCfg.ini";private void WriteIni(){ Wri 阅读全文
posted @ 2012-09-10 15:34 没有你我无法微笑 阅读(1034) 评论(0) 推荐(0) 编辑
摘要: 1:添加命名空间 System.Data.SqlClient中的SQL Server访问类;2:与SQL Server数据库建立连接,ADO.NET提供Connection对象用于建立与SQL Server数据库的连接 string connectionStr = "server=.;database=Train;uid=sa;pwd=123456"; //定义连接字符串 SqlConnection connection = new SqlConnection (connectionStr); //实例化Connection对象用于连接数据源 connection.Open 阅读全文
posted @ 2012-09-10 15:28 没有你我无法微笑 阅读(286) 评论(0) 推荐(0) 编辑