[随笔分类]C#
文章平均质量分 68
iteye_15010
这个作者很懒,什么都没留下…
展开
-
ASP.NET 的 JSON 应用
public class Services{ public string ServiceNo = null; public string ServiceState = null;}private int _AppendService(Services serv){ return SqlHelper.ExecuteNoQuery("INSERT INTO wfServices([Servi...2007-02-25 21:21:00 · 84 阅读 · 0 评论 -
create shortcut
Searching the Source Code of Adding my Program Shortcut into Start MenuNow, I am searching the source code by C# of adding my program shortcut into Start Menu. I think its solution maybe is to modify...2007-04-21 21:05:00 · 941 阅读 · 0 评论 -
素数生成器的算法【C# EDITION】
1public static ArrayList GeneratePrimes(int ubound) 2 { 3 BitArray flags = new BitArray(ubound + 1, true); 4 for(int i = 2; i <= (int)Math.Sqrt(ubound); i++) ...2005-05-08 10:39:00 · 181 阅读 · 0 评论 -
将PICTUREBOX中显示的图片,存入数据库中
将PICTUREBOX中显示的图片(不知道图片路径),存入数据库中:---------------------------------------------------------- 1if (null != picBox.Image) 2{ 3 using(System.IO.MemoryStream ms = new System.IO.MemoryStream()) 4 { ...2005-08-04 18:05:00 · 787 阅读 · 0 评论 -
中文星期的输出方法
按我们的习惯, 对于周几, 通常是 “星期X” 的方式, 而 .NET 中的 DayOfWeek 是一个 英文形式的 enum.自己输出中文,需要一个小小的转换:public static string CnWeekDayName(DateTime dt){ string[] arrCnNames = new string[]{"<font color='red'>日<...2005-10-02 14:52:00 · 161 阅读 · 0 评论 -
正则表达式提取网址、标题、图片等一例 .Net Asp Javascript/Js 的实现
<iframe src="http://www.zu14.cn/2008/11/01/regex_sample/" width="100%" height="1000"></iframe>2008-11-08 17:55:00 · 117 阅读 · 0 评论 -
C#用 SendKyes 结合 Process 或 API FindWindow、SendMessage(PostMessage) 等控制外部程序
<iframe src="http://www.zu14.cn/2008/10/28/csharp_api_sendkeys/" width="100%" height="1000px"></iframe>2008-11-08 18:03:00 · 104 阅读 · 0 评论 -
ASP.Net ListBox DropdownList 不同条目 设置 背景色 和 字体颜色
<iframe src="http://www.zu14.cn/2008/11/08/aspnet_dropdownlist_color/" height="800px" width="100%"></iframe>2008-11-08 20:29:00 · 351 阅读 · 0 评论 -
C#读取注册表,获取本机安装的软件清单
应一个网友的需求,写了下面的,获取本机安装的软件的清单,希望对有需要的人,有帮助吧 using Microsoft.Win32; using (RegistryKey key = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Uninst...2010-01-09 17:06:00 · 837 阅读 · 0 评论