- 博客(15)
- 资源 (1)
- 收藏
- 关注
原创 安装gcc-4.1.2_20070115-0.11.x86_64.rpm 提示error: Failed dependencie
M2000SER:/home # rmp -ivh gcc-4.1.2_20070115-0.11.x86_64.rpm-bash: rmp: command not foundM2000SER:/home # rpm -ivh gcc-4.1.2_20070115-0.11.x86_64.rpmerror: Failed dependencies: libmudfl
2013-03-20 18:12:41
789
原创 在UI上使用BackgroundWorker
凡是WinForm的应用程序,如果他执行了一个的非常冗长的处理操作(比如文件查询),它在执行时会锁定用户界面,虽然主活动窗口一直在运行,但用户无法与程序交互,无法移动窗体或改变窗体大小,所以用户感觉很不爽。如何做才能使得这个程序有响应。答案就是在后台线程中执行这个操作。 在这里已经有了多种方法来做这个事情: (一)委托异步调用 将具体耗时的操作作为一个委托,并用BeginInvoke来异步
2008-09-10 05:45:00
385
原创 c# delegate(委托)与多线程
前天写C#程序的时候,创建的后台线程无法访问前台的界面控件,问了身边的人,没有好的解决办法。正伤心, 遇到这篇文章:很多时候写windows程序都需要结合多线程,在.net中用如下得代码来创建并启动一个新的线程。public void ThreadProc();Thread thread = new Thread( new ThreadStart( ThreadProc ) );t
2008-09-10 05:39:00
418
原创 C#去掉空格
System.Text.RegularExpressions.Regex rx=new System.Text.RegularExpressions.Regex("//s"); test = rx.Replace("dfsf dfs sf s s fdfs ",string.Empty);
2008-09-08 16:41:00
476
原创 SQL被备份数据库
backup database article to disk=d:/article with init restore database sale from disk=d:/sale.bak with move sale to d:/sale.mdf,move sale.log to d:/sale_log.ldf,replace
2008-09-07 17:11:00
294
原创 SQLS删除重复记录
select COUNT(fid)-count(distinct FMobile) from t_companydelete from t_company where exists (select * from t_company as bwhere b.FName = t_company.FName and b.Fid )delete from t_company where exist
2008-09-07 15:14:00
303
原创 sql 时间格式
年: datepart(yy,getdate()) 月: datepart(mm,getdate()) 日: datepart(dd,getdate()) select CONVERT(varchar, getdate(), 120 ) 2004-09-12 11:06:08 select replace(replace(replace(CONVERT(varchar, getdat
2008-08-26 11:04:00
343
原创 存储过程计算报表
create procedure usp_t_scdd_otherMine -- @iPageSize int,@iCurPage int, @iYear int,@sDwID varchar(255)--with encryptionas begin --创建临时表 create table #t1 ( FNo int identity not null, /*序号*/
2008-08-19 11:41:00
381
原创 SQL分页存储过程例子
using System;using System.Data;using System.Data.SqlClient;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI
2008-08-05 22:53:00
418
原创 存储过程分页
SET QUOTED_IDENTIFIER ON GOSET ANSI_NULLS ON GO /********************************************************************************** Copyright (C) 2005 141421.com,All Rights Reserved
2008-08-05 17:02:00
334
原创 Sql语句集合
SELECT --从数据库表中检索数据行和列INSERT --向数据库表添加新数据行DELETE --从数据库表中删除数据行UPDATE --更新数据库表中的数据--数据定义CREATE TABLE --创建一个数据库表DROP TABLE --从数据库中删除表ALTER TABLE --修改数据库表结构CREATE VIEW --创建一个视图DROP VIEW --从数据库中删除视图CREATE
2008-07-30 11:40:00
299
原创 判断两个图片是否相等
判断两个图片是否相同,先读出流,然后在一个一个判断 private byte[] getImage(Image imageArgu) { if (imageArgu == null) { return new byte[0]; } MemoryStream m
2008-07-30 11:36:00
740
原创 全角转到半角
function conv(s){while(s.indexOf("0")!=-1){s=s.replace("0","0");}while(s.indexOf("1")!=-1){s=s.replace("1","1");}while(s.indexOf("2")!=-1){s=s.replace("2","2");}while(s.indexOf("3")!=-1){s=s.replace(
2008-05-29 11:02:00
562
原创 改变所有的颜色
html{filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);}
2008-05-19 17:14:00
257
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人