Loading

上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 52 下一页
摘要: 记录下,免得忘了,完全为了恶搞。 this.WindowState = FormWindowState.Minimized; // 为了防闪动,让程序开始运行时就最小化this.ShowInTaskbar = false; //让程序不在任务栏里显示base.SetVisibleCore(false); //ALT+TAB看不见窗体 阅读全文
posted @ 2009-10-13 13:47 today4king 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 1、OnStart()最常见的问题:在OnStart()的执行时间问题,如果超过30秒SCM会武断的认为服务无法启动,所以建议放到线程中执行。 2、调试最痛苦的问题:这个就直接贴上代码,在mian中写入如下代码 static void Main() { System.ServiceProcess.ServiceBase[] ServicesToRun; ServicesToRun = new Sy... 阅读全文
posted @ 2009-10-13 13:36 today4king 阅读(2217) 评论(15) 推荐(0) 编辑
摘要: 命名空间: using System.Drawing; using System.Drawing.Imaging; using System.Windows.Forms; 相关代码    //获得当前屏幕的分辨率             Screen scr = ... 阅读全文
posted @ 2009-10-12 15:12 today4king 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 一.Windows服务介绍: Windows服务以前被称作NT服务,是一些运行在Windows NT、Windows 2000和Windows XP等操作系统下用户环境以外的程序。在以前,编写Windows服务程序需要程序员很强的C或C++功底。然而现在在Visual Studio.Net下,你可以运用C++或Visual C#或Visual Basic.Net很轻松的创建一个Windows服务程... 阅读全文
posted @ 2009-10-12 10:24 today4king 阅读(298) 评论(0) 推荐(0) 编辑
摘要: /********************************************************************************** * * 功能说明:备份和恢复SQL Server数据库 * 作者: 刘功勋; * 版本:V0.1(C#2.0);时间:2007-1-1 * 当使用SQL Server时,请引用 COM组件中的,SQLDMO.dll组件 * 当使用A... 阅读全文
posted @ 2009-10-09 10:18 today4king 阅读(2088) 评论(0) 推荐(3) 编辑
摘要: 这是修改的动易的代码,添加了Slashdot Menu,让菜单更好看点。 阅读全文
posted @ 2009-09-30 13:35 today4king 阅读(6967) 评论(26) 推荐(4) 编辑
摘要: 问题环境:注册JS块时。 出错信息: 异常详细信息: System.FormatException: 输入字符串的格式不正确。 出错代码:行 29: Page.ClientScript.RegisterClientScriptInclude("frameTab", "~/JS/FrameTab.js");行 30: Page.ClientScript .RegisterClientScriptIn... 阅读全文
posted @ 2009-09-29 11:20 today4king 阅读(5434) 评论(0) 推荐(0) 编辑
摘要: 这个问题似乎很傻,如果程序不给别人用倒没什么,如果是的话就会出现很莫名其妙的问题。 另外多用http://XXX.com/XXX.aspx比较好,比如在邮件中在资源访问,和使用了URL重写等功能时,我们就不用再考虑它了。 下面贴上代码 public static Uri WebRoot { get { HttpContext context = HttpContext.Current; if ... 阅读全文
posted @ 2009-09-28 14:04 today4king 阅读(936) 评论(0) 推荐(0) 编辑
摘要: 转自:LINQ: There is already an open DataReader associated with this Command which must be closed first 在CNN中加入:MultipleActiveResultSets=true 其实这个问题如果合格的ADO程序员就不会发生,也就是我这种Linq菜鸟才会错的,呵呵。 另外这个问题还会引发像 序列... 阅读全文
posted @ 2009-09-24 14:59 today4king 阅读(249) 评论(0) 推荐(0) 编辑
摘要: What’s the implicit name of the parameter that gets passed into the class’ set method? Value, and its datatype depends on whatever variable we’re changing. How do you inherit from a class in C#? Place... 阅读全文
posted @ 2009-09-24 13:52 today4king 阅读(1996) 评论(0) 推荐(0) 编辑
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 52 下一页