随风而去

博客园 首页 新随笔 联系 订阅 管理

2007年9月24日 #

摘要: 1. 创建一位图 int bmWidth = 425; // 图片的宽 int bmHeight = 185; // 图片的高 Bitmap bm = new Bitmap(bmWidth,bmHeight); //创建位图 Graphics g = Graphics.FromImage(bm); 2.画矩形图 int xPoint, yPoint; //... 阅读全文
posted @ 2007-09-24 21:37 Aaron_Zhang 阅读(874) 评论(2) 推荐(0)

摘要: using System; public class MyClass { public static void Main() { string s1 = "abcd"; string s2 = "abcde"; string ss = null; char[] arr1 = s1.ToCharArray(); ... 阅读全文
posted @ 2007-09-24 20:55 Aaron_Zhang 阅读(1284) 评论(0) 推荐(0)

2007年5月29日 #

摘要: DataSet ds = new DataSet(); da.Fill(ds,"studentinfo"); dgShow.DataSource = ds.Tables["studentinfo"].DefaultView; dgShow.DataBind(); //以下作分数和的统计 int count=0; for (int i = 0; i < ds.Table... 阅读全文
posted @ 2007-05-29 13:38 Aaron_Zhang 阅读(184) 评论(0) 推荐(0)

摘要: 从一个指定日期和时间减去另一个指定的日期和时间以生成时间间隔。public static TimeSpan operator -( DateTime d1, DateTime d2); 从指定的日期和时间减去指定的时间间隔,以生成新的日期和时间。public static DateTime operator -( DateTime d, TimeSpan t); System.Da... 阅读全文
posted @ 2007-05-29 10:21 Aaron_Zhang 阅读(1105) 评论(0) 推荐(0)

摘要: 数字类型相似,DateTime 对象具有将字符串转换为 DateTime 对象的功能。Parse 方法和 ParseExact 方法均可用于将日期或时间的字符串表示形式转换为 DateTime 对象。Parse 方法转换任何有效的字符串表示形式,而 ParseExact 方法只转换采用您指定的格式的字符串。这两种方法均可成功转换格式为标准 DateTime 模式(在日期与时间格式字符串一节中描述)... 阅读全文
posted @ 2007-05-29 10:16 Aaron_Zhang 阅读(7629) 评论(0) 推荐(0)

2007年5月22日 #

摘要: int iIndex; TextBox txt5, txt6, txt7, txt8, txt9, txt10; for (int i=1; i<=8; i++) { switch(1) { case 1: iIndex = 5; break; case 2: iInde... 阅读全文
posted @ 2007-05-22 11:19 Aaron_Zhang 阅读(271) 评论(0) 推荐(0)

2007年5月11日 #

摘要: 分析器错误信息: 未能加载类型“WebApplication1.Global”。分析器错误信息: 未能加载类型“WebApplication1.WebForm1”。 1、解决方法:请按照下面的步骤进行:1.看看你上次修改程序后,是不是没有编译通过?如果没有编译通过,修改错误的代码。2.删除原来的bin下面的dll文件(删除该程序生成的dll文件,引用的dll文件不要删除)3.在VS.NET中,选择... 阅读全文
posted @ 2007-05-11 12:27 Aaron_Zhang 阅读(1377) 评论(0) 推荐(0)

摘要: 问题:“在Web窗体设计器中未能加载该文件,请更正下列错误,然后重新加载 未指定错误” 点击aspx文件的时候, 不能显示的该页的设计窗体。而是弹出上面的提示.右键点击查看代码时候,能看到所属aspx.cs 文件的代码,但是不能关联起来。 解决方法:1.将该aspx和代码文件从项目中移除, 然后再添加进来,就可以了; 2.项目是只读的,把只读去掉; 3.有可能页面引用了第三方插件,而... 阅读全文
posted @ 2007-05-11 10:02 Aaron_Zhang 阅读(787) 评论(0) 推荐(0)