易截截图软件、单文件、免安装、纯绿色、仅160KB

打造自己的c#屏幕保护程序(,源码)

/**************************************************************************************************
*       作者wenwenhua
*        
/* Program : A Simple Screen Saver
* File Name : ScreenSaver.cs
* Author : Tran Khanh Hien
* Date : 06/20/2001
* email : hientk@yahoo.com
*/
****************************************************************************************************/
//应用程序主逻辑 screansaver 类
//其他的类文件简单,在这就不丢人了,把破的东西SHOW 出来是需要勇气的!
using System;
using System.Windows.Forms;
namespace SAVER
{
    /// <summary>
    /// screansaver 的摘要说明。
    /// </summary>
    public class screansaver
    {
        public screansaver() { }
         /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        //[STAThread]
        static void Main()
        {
            Form1 myform;
            if(    MessageBox.Show("是否设置应用程序?","notice",MessageBoxButtons.OKCancel) ==DialogResult.OK )
            {
                passset ps=new passset();
                ps.ShowDialog();
                myform = new Form1(ps.filepathtip.Text,(int)ps.numTimespan.Value,ps.usepwd.Checked);
                ps.Dispose();
 &nbs


相关文档:

asp.net(c#) 下SQL存储过程使用详细实例

记取记录集
create procedure getArticle
as
select * from Article_Content
GO
asp.net 调用方法
  SqlConnection Conn = new SqlConnection();
        Conn.ConnectionString = Data.Connstr();
        Conn.Open();
  ......

C#界面美化推荐DotNetBar

DotNetBar正式版8.4.0.2,通过中国控件网采购。与试用版有明显的区别。主要是启动速度,正式版启动速度很快。另外有个问题提醒大家。
1、在工具栏中添加竖条,在DotNetBar中只需将需要添加这个竖条后面的控件的BeginGroup属性为true即可。
2、ComboBoxItem,使用。当DropDownStyle为DropDown时,不能在设计界面添加item否 ......

C#编程水平的50个要点

1.总是用属性 (Property) 来代替可访问的数据成员
2.在  readonly 和 const 之间,优先使用 readonly
3.在 as 和 强制类型转换之间,优先使用 as 操作符
4.使用条件属性 (Conditional Attributes) 来代替条件编译语句 #if
5.总是为自定义类重载 ToString 方法
6.区别值类型和引用类型
7.使用不可变的值类型(Immu ......

c#继承父类技巧,并增加新的实现

1 父类  partial class FormBillTemplet:Form
        /// <summary>
        /// 新单
        /// </summary>
        /// <param name="s ......

C#导出xls,word,图片及样式问题

public void ExportControl(System.Web.UI.Control source, string DocumentType, string filename)
{
//设置Http的头信息,编码格式
HttpContext.Current.Response.Buffer = true;
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.ClearContent();
......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号