上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 24 下一页
摘要: http://blog.csdn.net/moon66sun 阅读全文
posted @ 2011-05-06 14:19 许明吉博客 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 1、CellFormatting事件,一般重绘单元格属性。 private Bitmap highPriImage; private Bitmap mediumPriImage; private Bitmap lowPriImage;private void dataGridView1_CellFormatting(object sender, System.Windows.Forms.DataGridViewCellFormattingEventArgs e) { // Set the background to red for negative values in the Balance 阅读全文
posted @ 2011-05-06 14:03 许明吉博客 阅读(11241) 评论(1) 推荐(0) 编辑
摘要: 1.引入相应的命名空间:view plaincopy to clipboardprint?usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Data;usingSystem.Data.OleDb;usingSystem.Data.SqlClient;2.读取Excel文件,将内容存储在DataSet中view plaincopy to clipboardprint?///<summary>///读取Excel文件,将内容存储在DataS 阅读全文
posted @ 2011-05-06 13:58 许明吉博客 阅读(538) 评论(0) 推荐(0) 编辑
摘要: -、开题上次的项目(C#)恰好碰到这个问题,开始以为C#肯定会提供类似VB的IsNumberic的函数吧,找了半天没有找到(可能有吧不确定拉),项目紧,算了自己写一个吧,写完总感觉不是最优的.蹭日这次积月累的机会,大家集思广益,有想法的说出来,有行动的写出来.公认最好的函数就加到C#公共函数.输入任何都是允许的,只要输入的字符串每一个字符是数字就OK,所以:+123456,-123456,123.456,00.123456,.12345678 不符合要求00123456 符合要求二讨论方法一:public static bool ISNumber(string p_strInput){if ( 阅读全文
posted @ 2011-05-06 13:55 许明吉博客 阅读(7212) 评论(0) 推荐(0) 编辑
摘要: ===================最通用的写法=====================历代高手的结晶==========using System;using System.ComponentModel;using System.Collections;using System.Diagnostics;using System.Data;using System.Data.SqlClient;using System.Configuration;using System.Web.SessionState;using System.Web;namespace Utilities{/// &l 阅读全文
posted @ 2011-05-06 13:54 许明吉博客 阅读(646) 评论(0) 推荐(0) 编辑
摘要: c#数据库连接方法收藏VS2005 连接ACCESS,SQL SERVER,ORACLE数据库测试通过。首先我们新建立一个项目,填加一个类,专门用做数据库连接用。这里我们给这个类起名叫DataBase.cs,下面是这个类的内容。using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.W 阅读全文
posted @ 2011-05-06 13:52 许明吉博客 阅读(5902) 评论(0) 推荐(1) 编辑
摘要: c#数据库连接方法收藏VS2005 连接ACCESS,SQL SERVER,ORACLE数据库测试通过。首先我们新建立一个项目,填加一个类,专门用做数据库连接用。这里我们给这个类起名叫DataBase.cs,下面是这个类的内容。using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.W 阅读全文
posted @ 2011-05-06 13:51 许明吉博客 阅读(398) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/eattonton 阅读全文
posted @ 2011-05-06 13:49 许明吉博客 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 态度篇1. 做实事不要抱怨,发牢骚,指责他人,找出问题所在,想办法解决。对问题和错误,要勇于承担。2. 欲速则不达用小聪明、权宜之计解决问题,求快而不顾代码质量,会给项目留下要命的死角。3. 对事不对人就事论事,明智、真诚、虚心地讨论问题,提出创新方案。4. 排除万难,奋勇前进勇气往往是克服困难的唯一方法。学习篇5. 跟踪变化新技术层出不穷并不可怕。坚持学习新技术,读书,读技术杂志,参加技术活动,与人交流。要多理解新词背后的所以然,把握技术大趋势,将新技术用于产品开发要谨慎。6. 对团队投资打造学习型团队,不断提高兄弟们的平均水平。7. 懂得丢弃老的套路和技术,该丢,就得丢。不要固步自封。8. 阅读全文
posted @ 2011-05-06 13:46 许明吉博客 阅读(205) 评论(0) 推荐(0) 编辑
摘要: /备注 按照定义,如果该进程在本地或网络驱动器的根目录中启动,则此属性的值为驱动器名称后跟一个尾部反斜杠(如“C:\”)。如果该进程在子目录中启动,则此属性的值为stringstr1=Process.GetCurrentProcess().MainModule.FileName;//可获得当前执行的exe的文件名。stringstr2=Environment.CurrentDirectory;//获取和设置当前目录(即该进程从中启动的目录)的完全限定路径。不带尾部反斜杠的驱动器和子目录路径(如“C:\mySubDirectory”)。stringstr3=Directory.GetCurren 阅读全文
posted @ 2011-05-06 13:44 许明吉博客 阅读(350) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 24 下一页