摘要: 安装SQL Server 2008 R2报错“此计算机上安装了 Microsoft Visual Studio 2008 的早期版本,请在安装 SQL Server 2008 前将 VS2008 升级到 SP1“。 解决方法: 32位操作系统: 打开注册表,将 HKEY_LOCAL_MACHINE/ 阅读全文
posted @ 2019-09-06 08:29 一叶孤城 阅读(1929) 评论(0) 推荐(0)
摘要: JavaScriptSerializer jss = new JavaScriptSerializer(); Dictionary dict = new Dictionary(); string strDATAJSON = ""; dict.Add("AA", "00"); dict.Add("BB", "00")... 阅读全文
posted @ 2019-08-03 10:42 一叶孤城 阅读(9137) 评论(0) 推荐(0)
摘要: 一、获取JSon中某个项的值 要解析格式: [{"VBELN":"10","POSNR":"10","RET_TYPE":"S","RET_MSG":"写入失败:"},{"VBELN":"00","POSNR":"00","RET_TYPE":"E","RET_MSG":"写入失败:&qu 阅读全文
posted @ 2019-08-03 10:38 一叶孤城 阅读(13328) 评论(0) 推荐(0)
摘要: 1、调出 TreeView控件 或 ListBox控件 private void deductGrid1_CellClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex < 0 || e.RowIndex < 0) 阅读全文
posted @ 2019-07-12 17:32 一叶孤城 阅读(787) 评论(0) 推荐(0)
摘要: //通过访问目录下的DLL Assembly ass = Assembly.LoadFile(Application.StartupPath + "\\Design.dll"); Type tp = ass.GetType("Design.Form1",false); Form frm = (For 阅读全文
posted @ 2019-07-12 16:49 一叶孤城 阅读(887) 评论(0) 推荐(0)
摘要: 1、控件效果图 此效果图中的标题颜色、字号及字体可以在控件属性中设置。标题背景的渐变色及布局内容的背景色也可以在属性中设置。 2、实现的代码(用户控件) 1 public partial class UcPanel : UserControl 2 { 3 public UcPanel() 4 { 5 阅读全文
posted @ 2019-07-12 10:52 一叶孤城 阅读(914) 评论(0) 推荐(0)
摘要: Linq生成XML的方法: string CreateXML(string strkey, string strDATAJSON) { XDeclaration dec = new XDeclaration("1.0", "UTF-8", null); XDocument xdoc = new XD 阅读全文
posted @ 2019-07-10 14:28 一叶孤城 阅读(356) 评论(0) 推荐(0)
摘要: 针对上面格式的XML字符串,获取出来 数组内容或关键标示 解析代码: try { XmlDocument xmlDoc = new XmlDocument(); xmlDoc.LoadXml(strxml);//Load加载XML文件,LoadXML加载XML字符串 XmlElement root 阅读全文
posted @ 2019-07-10 11:34 一叶孤城 阅读(4685) 评论(0) 推荐(0)
摘要: 1、发送方代码 2、接收方代码 3、UdpService代码 阅读全文
posted @ 2019-05-15 12:59 一叶孤城 阅读(10891) 评论(0) 推荐(0)
摘要: 1、WebServices的返回结果 2、ListView内容布局代码 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 阅读全文
posted @ 2019-03-31 20:34 一叶孤城 阅读(271) 评论(0) 推荐(0)