摘要: 说明:(1)命名:RichTextBox -> rtxt1ContextMenuTrip -> cms1(2)截图:(3)完整代码:using System;using System.Collections.Generic;using System.ComponentModel;using Syst... 阅读全文
posted @ 2014-10-16 10:43 Jackerson 阅读(216) 评论(0) 推荐(0)
摘要: 界面图:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Te... 阅读全文
posted @ 2014-10-14 16:18 Jackerson 阅读(131) 评论(0) 推荐(0)
摘要: 首先说明一下ArrayList 与 数组的区别:(1)ArrayList 的容量可以根据需要自由扩充,数组的容量是固定的(2)ArrayList 只能是一维形式,数组可以是多维的(3)ArrayList 提供将只读和固定大小包装返回到集合的方法,数组不提供(4)ArrayList 提供添加、插入和删... 阅读全文
posted @ 2014-09-26 11:03 Jackerson 阅读(111) 评论(0) 推荐(0)
摘要: 说明:冒泡、直接插入、选择、自带方法四中基本排序算法。using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using Syst... 阅读全文
posted @ 2014-09-25 15:43 Jackerson 阅读(155) 评论(0) 推荐(0)
摘要: 说明:(1)支持Window 7系统,但是xp系统智能朗读英文和数字;(2)添加引用 Interop.SpeechLib.dll;(3)使用时调用StringToVoice(str)即可。 using SpeechLib; /// /// 把字符串转换成声音 //... 阅读全文
posted @ 2014-09-24 12:20 Jackerson 阅读(214) 评论(0) 推荐(0)
摘要: 说明:(1)表A的一部分数据插入到表B(2)DataAccess 类,是放在DAL层下的底层类;da.StrConnection 写在DataAccess类中; //整表插入方法private void InsertTable() { DataAccess da = new DataAcc... 阅读全文
posted @ 2014-09-17 16:18 Jackerson 阅读(105) 评论(0) 推荐(0)
摘要: string str1 = "C#操作字符串如下"; string str2 = "C#操作字符串"; //比较字符串 Compare,Equal //1,compare,int 1 string.Compare(str1, str2); ... 阅读全文
posted @ 2014-08-22 15:07 Jackerson 阅读(123) 评论(0) 推荐(0)
摘要: 说明:两个服务器:192.168.0.22 A192.168.0.3 B数据库备份在A上数据库在B上在A上写:execsp_addlinkedserver'ITSV2','','SQLOLEDB','服务器地址' execsp_addlinkedsrvlogin'ITSV2','false',... 阅读全文
posted @ 2014-08-21 21:24 Jackerson 阅读(104) 评论(0) 推荐(0)
摘要: 说明:1>窗体应用程序。2>一个窗体(Form1),一个按钮(btnStart),一个文本(labTime)3>截图:4>代码如下:using System;using System.Collections.Generic;using System.ComponentModel;using Syst... 阅读全文
posted @ 2014-08-21 14:12 Jackerson 阅读(152) 评论(0) 推荐(0)
摘要: 新手上路,高手勿进!利用数组,根据新旧数组值的不同,获取那个点是什么棋子;说明: 棋盘:15*15; 定义4个全局变量: string[,] stroldlist = new string[15, 15];//初始的List public string[,] strlist = new ... 阅读全文
posted @ 2014-08-07 20:55 Jackerson 阅读(170) 评论(0) 推荐(0)