随笔分类 -  c#

摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data;using System.Drawing; using System.Text; using System.Windows.Forms; using System.Threading; using Syste... 阅读全文
posted @ 2018-07-16 16:45 (时光)光阴飞逝 阅读(912) 评论(0) 推荐(0) 编辑
摘要:#region 字符串和Byte之间的转化 /// /// 数字和字节之间互转 /// ////// public static int IntToBitConverter(int num) { int temp = 0; byte[] bytes = BitConverter.GetBytes(n 阅读全文
posted @ 2018-07-16 16:44 (时光)光阴飞逝 阅读(179) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System. 阅读全文
posted @ 2018-01-18 23:11 (时光)光阴飞逝 阅读(302) 评论(0) 推荐(0) 编辑
摘要:c#添加了Configuration;后,竟然找不到 ConfigurationManager 这个类,后来才发现: 虽然引用了using System.Configuration;这个包,但是还是不行的。 后来终于找到一个解决方法,就是在解决方案资源管理器里找到类文件选择“引用”,然后右击选择“添 阅读全文
posted @ 2018-01-18 23:09 (时光)光阴飞逝 编辑
摘要:UDPSever.cs using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; u 阅读全文
posted @ 2018-01-18 23:08 (时光)光阴飞逝 阅读(521) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System. 阅读全文
posted @ 2018-01-18 23:07 (时光)光阴飞逝 阅读(168) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System. 阅读全文
posted @ 2018-01-18 23:06 (时光)光阴飞逝 阅读(131) 评论(0) 推荐(0) 编辑
摘要:Form1.cs using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO; usi... 阅读全文
posted @ 2018-01-18 23:05 (时光)光阴飞逝 编辑
摘要:TCP客户端 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Net.Sockets; ... 阅读全文
posted @ 2018-01-18 23:04 (时光)光阴飞逝 编辑
摘要:主窗体: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Text... 阅读全文
posted @ 2018-01-06 20:33 (时光)光阴飞逝 编辑
摘要:Form2 form = new Form2(); //实例化要添加的窗体 form.Show();//显示 form.TopLevel = false; //要将这个顶级窗口设置false panel1.Controls.Add(form);//添加到Pannel中 pannel在主窗体中 阅读全文
posted @ 2018-01-06 13:45 (时光)光阴飞逝 阅读(730) 评论(0) 推荐(0) 编辑
摘要:xml文件格式如下: //----------------------------------- 我需要读取Product节点的type(15) total(35)值 以及 Mobile节点下的子节点G里面的属性gn、pr、sum的值. 最好把type节... 阅读全文
posted @ 2017-11-24 11:59 (时光)光阴飞逝 阅读(10949) 评论(0) 推荐(0) 编辑
摘要:1 c# xml操作(二) 此博文包含图片 (2011-05-05 14:58:36)转载▼ 2 标签: 杂谈 分类: c# 3 上次,我们介绍了增加和删除xml的一些操作,这次我们将介绍如何更改和读取xml特定节点。我们依然以上次的xml文件为例: 4 5 6 7 456 8 5465 9 10 11 ... 阅读全文
posted @ 2017-11-21 17:16 (时光)光阴飞逝 阅读(211) 评论(0) 推荐(0) 编辑
摘要:1 c# xml操作(一) 此博文包含图片 (2011-05-05 14:57:41)转载▼ 2 标签: 杂谈 分类: c# 3 同样是增,删,改,查四种操作。现在我们就详细介绍一下增和删两种操作。看下面的一个xml示例: 4 <?xml version="1.0" encoding="utf-8" 阅读全文
posted @ 2017-11-21 17:15 (时光)光阴飞逝 阅读(325) 评论(0) 推荐(0) 编辑
摘要:窗体就只用添加一个DataGridView控件就可以了。详细解释请参照上一篇中的借鉴曲终人散博客园的文档。 XML文档代码如下:test.xml 为了方便添加一个类:BookClass.cs 然后在窗体得主代码中加入: 最终效果如下: 阅读全文
posted @ 2017-11-16 16:43 (时光)光阴飞逝 阅读(2071) 评论(0) 推荐(0) 编辑
摘要:转自http://www.cnblogs.com/a1656344531/archive/2012/11/28/2792863.html c#读取XML XML文件是一种常用的文件格式,例如WinForm里面的app.config以及Web程序中的web.config文件,还有许多重要的场所都有它的 阅读全文
posted @ 2017-11-16 16:37 (时光)光阴飞逝 阅读(4303) 评论(0) 推荐(0) 编辑
摘要:转自http://blog.csdn.net/njyxfw/article/details/7707419 附件预览: 基于.net构架的留言板项目大全源码 http://down.51cto.com/zt/70 ASP.net和C#.net通用权限系统组件功能教程 http://down.51ct 阅读全文
posted @ 2017-10-24 15:46 (时光)光阴飞逝 阅读(1267) 评论(0) 推荐(0) 编辑
摘要:1、 在vs2010 选择“新建项目” “其他项目类型” “Visual Studio Installerà“安装项目”: 命名为:Setup1 。 这是在VS2010中将有三个文件夹, 1.“应用程序文件夹”表示要安装的应用程序需要添加的文件; 2.“用户的‘程序’菜单”表示:应用程序安装完,用户 阅读全文
posted @ 2017-10-24 15:40 (时光)光阴飞逝 阅读(343) 评论(1) 推荐(1) 编辑
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Net.Sockets; 6 using System.Net; 7 using System.Threading; 8 9 namespac... 阅读全文
posted @ 2017-09-18 17:27 (时光)光阴飞逝 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-04-21 14:06 (时光)光阴飞逝 阅读(122) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示