welcome to .net developement bar
摘要: System.IO.Compression 命名空间   注意:此命名空间在 .NET Framework 2.0 版中是新增的。   System.IO.Compression 命名空间包含提供基本的流压缩和解压缩服务的类。 压缩字符串 public static string ZipString(string unCompressedString) { byte[] bytData = System.Text.Encoding.UTF8.GetBytes(unCompressedString); MemoryStream ms = new MemoryStream(); Stream s = new GZipStream(ms, CompressionMode.Compress); s.Write(bytData, 0, bytData.Length); s.Close(); byte[] compressedData = (byte[])ms.ToArr 阅读全文
posted @ 2007-06-02 12:51 endif 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 1、建立Conn.cs类文件 using System; using System.Text; using System.Web; using System.IO; namespace myservers { /// /// Conn 的摘要说明。 /// public class Conn { public Conn() { // // TODO: 在此处添加构造函数逻辑 // } public string WriteFile(string strText,string strContent,string strAuthor) { s 阅读全文
posted @ 2007-06-02 12:35 endif 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 你是不是装过VMware,我先装VS2005,后装VMware。然后进服务把VMware的一些随开机启动的服务改成手动了。就出现启动画面停在那,无响应的事情发生了。 VMDebugger导致VS2005无法启动,就出现了VS2005启动时只显示到启动界面就定住的情况。发现了原因是VMware装上后在VS2005上添加了一个VMDebugger工具栏,VMware服务没有加载,就导致了VS2005无... 阅读全文
posted @ 2009-03-18 13:17 endif 阅读(376) 评论(1) 推荐(1) 编辑
摘要: 哪行哪业都少不了基本功,都说“马步”要扎得稳。在都快说烂了的以目标用户为中心设计的今天,还是要勤练基本功的。不多说了,先了解下“设计的3个C”:一、构图(Composition):一个设计的构成因素如何在视觉上结合安排。构图中包括放置、组合、排列、视觉流动,以及布局上的空间区分。二、构成因素(Components):它们是设计中使用的视觉因素。照片、... 阅读全文
posted @ 2008-12-24 19:54 endif 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--TheEdge推荐[2007-6-4]出处:中国IT实验室作者:keda说到数据库,我认为不能不先谈数据结构。1996年,在我初入大学学习计算机编程时,当时的老师就告诉我们说:计算机程序=数据结构+算法。... 阅读全文
posted @ 2007-06-10 09:24 endif 阅读(193) 评论(0) 推荐(0) 编辑
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--如果你读过很多行业杂志和ASP.NET示例,你会发现,大多数人使用Response.Redirect将用户引导到另一个页面,而另一些人好像偏爱于神秘的Server.Transfer,那么,这二者有什么区别... 阅读全文
posted @ 2007-06-09 15:54 endif 阅读(429) 评论(1) 推荐(0) 编辑
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--^((((1[6-9]|[2-9]\d)\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\d|3[01]))|(((1[6-9]|[2-9]\d)\d{2})-(0?[1345... 阅读全文
posted @ 2007-06-09 15:54 endif 阅读(306) 评论(0) 推荐(0) 编辑
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Runtime.InteropServices;usingSystem.Management;namespaceHardware{///<summar... 阅读全文
posted @ 2007-06-09 15:53 endif 阅读(793) 评论(3) 推荐(0) 编辑
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--作者:Webmaster来源:Linuxdby.com点击:1日期:2007-06-04[收藏][投稿]IE是否经常中毒?推荐您下载带有Google工具栏的Firefox,上网冲浪更惬意晚辈最近用C#写了... 阅读全文
posted @ 2007-06-06 19:19 endif 阅读(556) 评论(0) 推荐(0) 编辑
摘要: 使用C#在进度条中显示复制文件的进度 阅读全文
posted @ 2007-06-06 19:17 endif 阅读(1590) 评论(0) 推荐(0) 编辑
摘要: Windows XP SP2多线程访问提速秘技 日期:2006-5-28 14:36:57 人气: 512 [大 中 小] 众所周知,为了防范蠕虫病毒的传播和攻击,Windows XP SP2将并发线程最多限制为10个。SP2利用Messages动态链接库,来实时监控每个进程的并发线程数目,一旦它发现某进程的线程数超过10个,就 会屏蔽掉部分线程。SP2这样做,虽然可以防范震荡波类型的蠕虫病毒,加... 阅读全文
posted @ 2007-06-06 15:51 endif 阅读(392) 评论(0) 推荐(0) 编辑
摘要: 在MSDN中,.net的数据库连接字符串都有详细的说明,我这里以代码范例的方式罗列一些,具体的每一项代表的意义可以参看MSDN. ADO.net 中数据库连接方式(微软提供) 微软提供了以下四种数据库连接方式: System.Data.OleDb.OleDbConnection System.Data.SqlClient.SqlConnection System.Data.Odbc.OdbcConnection System.Data.OracleClient.OracleConnection 下面我们以范例的方式,来依次说明: System.Data.SqlClient.SqlConnection 常用的一些连接字符串(C#代码): SqlConnection conn = new SqlConnection( "Server=(local);Integrated Security=SSPI;database=Pubs"); SqlConn 阅读全文
posted @ 2007-06-06 15:50 endif 阅读(1016) 评论(0) 推荐(0) 编辑