<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_302Soft—302软件技术联盟</title><subtitle type="text">ASP.NET / C# / PowerBuilder 技术交流</subtitle><id>http://feed.cnblogs.com/blog/u/23896/rss</id><updated>2010-06-26T18:17:44Z</updated><author><name>&lt;font color="red" size=2px&gt;寒夜听雨&lt;/font&gt;</name><uri>http://www.cnblogs.com/302soft/</uri></author><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/302soft/"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/23896/rss"/><entry><id>http://www.cnblogs.com/302soft/archive/2007/12/07/986729.html</id><title type="text">C#返回两个日期的间隔值</title><summary type="text">DateTime date1=DateTime.Now; DateTime date2=Convert.ToDateTime("2002/2/1"); System.TimeSpan df=date1-date2; MessageBox.Show(df.Days+"天"+df.Hours+"小时"+df.Minutes+"分钟");</summary><published>2007-12-07T06:06:00Z</published><updated>2007-12-07T06:06:00Z</updated><author><name>&lt;font color="red" size=2px&gt;寒夜听雨&lt;/font&gt;</name><uri>http://www.cnblogs.com/302soft/</uri></author><link rel="alternate" href="http://www.cnblogs.com/302soft/archive/2007/12/07/986729.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/302soft/archive/2007/12/07/986729.html"/><content type="text">DateTime date1=DateTime.Now; DateTime date2=Convert.ToDateTime("2002/2/1"); System.TimeSpan df=date1-date2; MessageBox.Show(df.Days+"天"+df.Hours+"小时"+df.Minutes+"分钟");</content></entry><entry><id>http://www.cnblogs.com/302soft/archive/2007/12/07/986712.html</id><title type="text">C#日期函数所有样式大全</title><summary type="text">DateTimedt=DateTime.Now; //Label1.Text=dt.ToString();//2005-11-513:21:25 //Label2.Text=dt.ToFileTime().ToString();//127756416859912816 //Label3.Text=dt.ToFileTimeUtc().ToString();//127756704859912816 ...</summary><published>2007-12-07T05:57:00Z</published><updated>2007-12-07T05:57:00Z</updated><author><name>&lt;font color="red" size=2px&gt;寒夜听雨&lt;/font&gt;</name><uri>http://www.cnblogs.com/302soft/</uri></author><link rel="alternate" href="http://www.cnblogs.com/302soft/archive/2007/12/07/986712.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/302soft/archive/2007/12/07/986712.html"/><content type="text">DateTimedt=DateTime.Now; //Label1.Text=dt.ToString();//2005-11-513:21:25 //Label2.Text=dt.ToFileTime().ToString();//127756416859912816 //Label3.Text=dt.ToFileTimeUtc().ToString();//127756704859912816 ...</content></entry><entry><id>http://www.cnblogs.com/302soft/archive/2007/06/01/768208.html</id><title type="text">ActiveBar3.0汉化版ForPowerBuilder－－强烈推荐！！！</title><summary type="text">ActiveBar3.0新增了Office2003和VS2005界面风格，可以轻易做出像Outlook2003的NavigationBar，只可惜它对PB的支持不太好，有部分方法在PB中无法调用，虽然帮助文件里说只支持VB6.0以上和C++，但PB里也可以使用，我也是刚在网上找到，用了一天的时间对其设计器和OCX控件进行了汉化，有小部分还保留了英文－因为汉化后在设计器里显示乱码。因为最近太忙，汉化...</summary><published>2007-06-01T13:42:00Z</published><updated>2007-06-01T13:42:00Z</updated><author><name>&lt;font color="red" size=2px&gt;寒夜听雨&lt;/font&gt;</name><uri>http://www.cnblogs.com/302soft/</uri></author><link rel="alternate" href="http://www.cnblogs.com/302soft/archive/2007/06/01/768208.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/302soft/archive/2007/06/01/768208.html"/><content type="text">ActiveBar3.0新增了Office2003和VS2005界面风格，可以轻易做出像Outlook2003的NavigationBar，只可惜它对PB的支持不太好，有部分方法在PB中无法调用，虽然帮助文件里说只支持VB6.0以上和C++，但PB里也可以使用，我也是刚在网上找到，用了一天的时间对其设计器和OCX控件进行了汉化，有小部分还保留了英文－因为汉化后在设计器里显示乱码。因为最近太忙，汉化...</content></entry><entry><id>http://www.cnblogs.com/302soft/archive/2007/03/16/677208.html</id><title type="text">PB取中文星期就这么简单</title><summary type="text">PB没有取中文星期的函数,所以只能自己写,以前总是将系统的英文星期取出来,用一个CASE语句一个个转,代码太多,今天终于发现了一个简单的方法,用DayNumber转,只要两行代码就搞定://函数: f_getChinessWeek()//参数:Date ad_date//返回: String//功能: 返回中文星期字符串//作者:Gary 2007.03.16Stringls_warr[] = {...</summary><published>2007-03-16T05:56:00Z</published><updated>2007-03-16T05:56:00Z</updated><author><name>&lt;font color="red" size=2px&gt;寒夜听雨&lt;/font&gt;</name><uri>http://www.cnblogs.com/302soft/</uri></author><link rel="alternate" href="http://www.cnblogs.com/302soft/archive/2007/03/16/677208.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/302soft/archive/2007/03/16/677208.html"/><content type="text">PB没有取中文星期的函数,所以只能自己写,以前总是将系统的英文星期取出来,用一个CASE语句一个个转,代码太多,今天终于发现了一个简单的方法,用DayNumber转,只要两行代码就搞定://函数: f_getChinessWeek()//参数:Date ad_date//返回: String//功能: 返回中文星期字符串//作者:Gary 2007.03.16Stringls_warr[] = {...</content></entry><entry><id>http://www.cnblogs.com/302soft/archive/2007/02/24/655119.html</id><title type="text">302酷月历3.0</title><summary type="text">这次更新的是公历日期和农历日期的显示问题，公历和农历的日期字体及颜色可以随意设置。顺便发一个小控件：闪烁的标签。标签可以设置字体或者背景自动闪烁（变换颜色），闪烁频率可以自由更改，已经一起放压缩包里了，自己研究。302CoolMonthCalendar3.0下载地址：http://www.cnblogs.com/Files/302soft/MonthCalendar3.0.rar</summary><published>2007-02-24T12:42:00Z</published><updated>2007-02-24T12:42:00Z</updated><author><name>&lt;font color="red" size=2px&gt;寒夜听雨&lt;/font&gt;</name><uri>http://www.cnblogs.com/302soft/</uri></author><link rel="alternate" href="http://www.cnblogs.com/302soft/archive/2007/02/24/655119.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/302soft/archive/2007/02/24/655119.html"/><content type="text">这次更新的是公历日期和农历日期的显示问题，公历和农历的日期字体及颜色可以随意设置。顺便发一个小控件：闪烁的标签。标签可以设置字体或者背景自动闪烁（变换颜色），闪烁频率可以自由更改，已经一起放压缩包里了，自己研究。302CoolMonthCalendar3.0下载地址：http://www.cnblogs.com/Files/302soft/MonthCalendar3.0.rar</content></entry><entry><id>http://www.cnblogs.com/302soft/archive/2007/02/11/647475.html</id><title type="text">302酷月历2.0（支持1900年-2100年间的　农历、节日、节气、生肖、星座……）</title><summary type="text">一直想找个支持农历的月历控件，可是找了许久，网上的都不太令人满意，还是自己动手做一个吧。经过多天的努力，参考了网上许代码，现在基本上已经完成了，先贴个图让大伙瞧瞧，如果大家感兴趣的话我会把控件发上来，至于源代码，我看情况吧，春节过后我可能会公开一部分。控件主要功能已基本完成。支持1900年-2100年间的农历、节日、节气、生肖、星座；公农历日期中文显示；月历输出为图片；月历打印；背景自定义；显示...</summary><published>2007-02-11T06:50:00Z</published><updated>2007-02-11T06:50:00Z</updated><author><name>&lt;font color="red" size=2px&gt;寒夜听雨&lt;/font&gt;</name><uri>http://www.cnblogs.com/302soft/</uri></author><link rel="alternate" href="http://www.cnblogs.com/302soft/archive/2007/02/11/647475.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/302soft/archive/2007/02/11/647475.html"/><content type="text">一直想找个支持农历的月历控件，可是找了许久，网上的都不太令人满意，还是自己动手做一个吧。经过多天的努力，参考了网上许代码，现在基本上已经完成了，先贴个图让大伙瞧瞧，如果大家感兴趣的话我会把控件发上来，至于源代码，我看情况吧，春节过后我可能会公开一部分。控件主要功能已基本完成。支持1900年-2100年间的农历、节日、节气、生肖、星座；公农历日期中文显示；月历输出为图片；月历打印；背景自定义；显示...</content></entry><entry><id>http://www.cnblogs.com/302soft/archive/2007/02/07/642815.html</id><title type="text">关于农历算法的问题</title><summary type="text">最近在写个公农历转换的类，在网上查了很多资料，发觉网上的许多查询程序在计算干支年的时候好像都有问题。 本人认为，天干地支记年法应该是属于农历的，比如 丁亥猪年，应该是从农历的二○○七年正月初一开始到农历十二月底，而不是从二十四节气中的立春，更不是从公历的2007年1月1日算起。但是许多在线查询的网站上好像都有错，包括腾讯星座频道上的万年历和一些专门的农历查询网站。都是立春开始就算是丁亥年了，但实际...</summary><published>2007-02-06T21:17:00Z</published><updated>2007-02-06T21:17:00Z</updated><author><name>&lt;font color="red" size=2px&gt;寒夜听雨&lt;/font&gt;</name><uri>http://www.cnblogs.com/302soft/</uri></author><link rel="alternate" href="http://www.cnblogs.com/302soft/archive/2007/02/07/642815.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/302soft/archive/2007/02/07/642815.html"/><content type="text">最近在写个公农历转换的类，在网上查了很多资料，发觉网上的许多查询程序在计算干支年的时候好像都有问题。 本人认为，天干地支记年法应该是属于农历的，比如 丁亥猪年，应该是从农历的二○○七年正月初一开始到农历十二月底，而不是从二十四节气中的立春，更不是从公历的2007年1月1日算起。但是许多在线查询的网站上好像都有错，包括腾讯星座频道上的万年历和一些专门的农历查询网站。都是立春开始就算是丁亥年了，但实际...</content></entry><entry><id>http://www.cnblogs.com/302soft/archive/2007/02/05/641061.html</id><title type="text">中国年历算法和程式 </title><summary type="text">中国公历算法不是太难，关键是星期值的确定。这里给出了简单算法： public static int dayOfWeek(int y, int m, int d) {   int w = 1; // 公历一年一月一日是星期一，所以起始值为星期日  y = (y-1)%400 + 1; // 公历星期值分部 400 年循环一次  int ly = (y-1)/4; // 闰年次数  ly = ly - (y-1)/100; ly = ly + (y-1)/400;  int ry = y - 1 - ly; // 常年次数  w = w + ry; // 常年星期值增一  w = w + 2*ly; // 闰年星期值增二  w = w + dayOfYear(y,m,d);   w = (w-1)%7 + 1; return w; }</summary><published>2007-02-05T11:19:00Z</published><updated>2007-02-05T11:19:00Z</updated><author><name>&lt;font color="red" size=2px&gt;寒夜听雨&lt;/font&gt;</name><uri>http://www.cnblogs.com/302soft/</uri></author><link rel="alternate" href="http://www.cnblogs.com/302soft/archive/2007/02/05/641061.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/302soft/archive/2007/02/05/641061.html"/><content type="text">中国公历算法不是太难，关键是星期值的确定。这里给出了简单算法： public static int dayOfWeek(int y, int m, int d) {   int w = 1; // 公历一年一月一日是星期一，所以起始值为星期日  y = (y-1)%400 + 1; // 公历星期值分部 400 年循环一次  int ly = (y-1)/4; // 闰年次数  ly = ly - (y-1)/100; ly = ly + (y-1)/400;  int ry = y - 1 - ly; // 常年次数  w = w + ry; // 常年星期值增一  w = w + 2*ly; // 闰年星期值增二  w = w + dayOfYear(y,m,d);   w = (w-1)%7 + 1; return w; }</content></entry><entry><id>http://www.cnblogs.com/302soft/archive/2007/02/03/638894.html</id><title type="text">安装程序后，如何让它不在控制面板的“添加或删除程序”列表里出现</title><summary type="text">问题：怎么样在不删除程序的情况下，把添加删除程序里面的某个程序的卸载项目删掉？答案：进入注册表，在：HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall 分支下找到该程序主键，并将其删除。</summary><published>2007-02-03T06:10:00Z</published><updated>2007-02-03T06:10:00Z</updated><author><name>&lt;font color="red" size=2px&gt;寒夜听雨&lt;/font&gt;</name><uri>http://www.cnblogs.com/302soft/</uri></author><link rel="alternate" href="http://www.cnblogs.com/302soft/archive/2007/02/03/638894.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/302soft/archive/2007/02/03/638894.html"/><content type="text">问题：怎么样在不删除程序的情况下，把添加删除程序里面的某个程序的卸载项目删掉？答案：进入注册表，在：HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall 分支下找到该程序主键，并将其删除。</content></entry><entry><id>http://www.cnblogs.com/302soft/archive/2007/02/03/638724.html</id><title type="text">302酷时钟</title><summary type="text">下载地址：http://www.cnblogs.com/Files/302soft/302CoolClock.rar这是本人改版增强的桌面时钟程序，部分代码和图片来自网上的“玉兰时钟”。功能简介：1.可以自己制作时钟皮肤。可以自行组合图片做成时钟显示面板（.BMP格式），放到Skin文件夹下，然后打开Skin.ini文件，参照里面的参数增加一条新加入的皮肤信息即可，程序会自...</summary><published>2007-02-03T01:51:00Z</published><updated>2007-02-03T01:51:00Z</updated><author><name>&lt;font color="red" size=2px&gt;寒夜听雨&lt;/font&gt;</name><uri>http://www.cnblogs.com/302soft/</uri></author><link rel="alternate" href="http://www.cnblogs.com/302soft/archive/2007/02/03/638724.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/302soft/archive/2007/02/03/638724.html"/><content type="text">下载地址：http://www.cnblogs.com/Files/302soft/302CoolClock.rar这是本人改版增强的桌面时钟程序，部分代码和图片来自网上的“玉兰时钟”。功能简介：1.可以自己制作时钟皮肤。可以自行组合图片做成时钟显示面板（.BMP格式），放到Skin文件夹下，然后打开Skin.ini文件，参照里面的参数增加一条新加入的皮肤信息即可，程序会自...</content></entry></feed>
