摘要: 今用到DevExpress,想到换肤,参考了博友DevExpress换肤手把手教程 , 该文中已经实现了打开窗体换肤,但是以后打开窗体的皮肤如何设置呢,就没说了,但稍加扩展也可实现。 我喜欢复杂问题简单化,在tannaiyin的基础上这么来弄 要简单得多。 阅读全文
posted @ 2009-10-26 20:14 绥山潇洒哥 阅读(3542) 评论(8) 推荐(2) 编辑
摘要: //下面类使用的是遍历进程,根据进程名判断 //参考 using System; using System.Text.RegularExpressions; using System.Diagnostics; using System.Runtime.InteropServices; namespace HandleRunningProcess { /// <summary>... 阅读全文
posted @ 2008-05-09 21:39 绥山潇洒哥 阅读(716) 评论(0) 推荐(0) 编辑
摘要: 先讲实现方法: 首先依然是命名空间: using System.Threading; 然后修改 static void Main() { bool bCreatedNew; Mutex ltt =new Mutex( false, "myUniqueName", out bCreatedNew ); if( bCreatedNew ) Application.Run(n... 阅读全文
posted @ 2008-05-09 21:38 绥山潇洒哥 阅读(538) 评论(1) 推荐(0) 编辑
摘要: 我们先定义一些常见类型变量借以说明#include "stdlib.h"int i = 100;long l = 2001;float f=300.2;double d=12345.119;char username[]="程佩君";char temp[200];char *buf;CString str;_variant_t v1;_bstr_t v2;一、其它数据类型转换为字符串短整型(int... 阅读全文
posted @ 2008-04-20 22:25 绥山潇洒哥 阅读(770) 评论(0) 推荐(0) 编辑
摘要: I was curious what happened when I used the new Community Server MetaBlogAPI with inline images when posting from Live Writer.  Specifically, I wanted to see how and where new folders were create... 阅读全文
posted @ 2006-11-30 12:47 绥山潇洒哥 阅读(240) 评论(0) 推荐(0) 编辑
摘要: "^\d+$"  //非负整数(正整数+0)"^[0-9]*[1-9][0-9]*$"  //正整数"^((-\d+)|(0+))$"  //非正整数(负整数+0)"^-[0-9]*[1-9][0-9]*$"  //负整数"^-?\d+$"    //整数"^\d+(\.\d+)?$"  //非负浮点数(正浮点数+0)"^(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1... 阅读全文
posted @ 2006-10-16 19:21 绥山潇洒哥 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 利用CSS Friendly ASP.NET 2.0 Control Adapters (Beta 2.0)开发时 例如在登陆控件,指定了CreateUserUrl="~/Secure/NewUserReg.aspx"和PasswordRecoveryUrl="~/Secure/PasswordRecovery.aspx", 在运行后解析代码的HTML代码中的URL没有转换成客户端可调用的Url,还是"~/Secure/NewUserReg.aspx"和"~/Secure/PasswordRecovery.aspx",此时客户端就会出错 阅读全文
posted @ 2006-10-10 13:26 绥山潇洒哥 阅读(1287) 评论(0) 推荐(0) 编辑
摘要: 在 Shark Xu 的文章给所有的Control加两个属性,实现回车键自动跳转到下一个控件 中给我们提供了一个方法实现的Windows应用程序中按回车键或者上下键,在输入项之间自动跳转。确实解决很大的问题,减少了代码量。honyoung 提出利用发送Tab事件来解决这个问题。 即简化了设置两个属性的步骤(特别是在设置下一个或上一个时选择控件时很容易出错)。同时在VS.NET中又提供了TabIndex属性,这样很容易造成ControlFocus的属性和TabIndex不相匹配的地方。于是我在Shark Xu的基础上实现了“给所有的Control添加发送键盘事件Tab事件,实现回车键自动跳转到下一个控件 ” 阅读全文
posted @ 2006-08-25 21:50 绥山潇洒哥 阅读(3927) 评论(10) 推荐(0) 编辑