浅谈.NET下的多线程和并行计算(转载)
    
            
摘要:http://www.cnblogs.com/lovecindywang/archive/2009/12/25/1632014.html
        
阅读全文
                posted @ 
2010-11-17 14:34 
永无止境
        
阅读(174) 
         
        推荐(0)     
             
            
            
    防止控件重绘闪烁
    
            
摘要:this.SetStyle(ControlStyles.DoubleBuffer, true);//设置双缓冲,防止图像抖动 this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);// 忽略系统消息,防止图像闪烁 this.SetStyle(ControlStyles.UserMouse, true);//控制鼠标完成事件
        
阅读全文
                posted @ 
2009-10-13 13:55 
永无止境
        
阅读(300) 
         
        推荐(1)     
             
            
            
    子窗体在MDI主窗体中,不显示窗体头。
    
            
摘要:Form1 childForm = new Form1(); // 在显示该窗体前使其成为此 MDI 窗体的子窗体。 childForm.MdiParent = this; childForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; childForm.ControlBox = false; childForm.Pa...
        
阅读全文
                posted @ 
2009-07-20 10:08 
永无止境
        
阅读(242) 
         
        推荐(0)     
             
            
            
    C#调用API 实现窗体总在最上
    
            
摘要:class Win32 { [DllImport("user32.dll", EntryPoint = "SetWindowPos")] public static extern bool SetWindowPos( int hWnd, // window handle  int hWndInsertAfter, // placement-order handle  int X, // horiz...
        
阅读全文
                posted @ 
2009-06-16 17:28 
永无止境
        
阅读(437) 
         
        推荐(0)     
             
            
            
    获得Sql Server 2005 中任意对象创建脚本的C#实现
    
            
摘要:Microsoft.SqlServer.Management.Common.ServerConnection conn = new Microsoft.SqlServer.Management.Common.ServerConnection( new System.Data.SqlClient.SqlConnection(@"server=server;u...
        
阅读全文
                posted @ 
2009-01-07 17:49 
永无止境
        
阅读(265) 
         
        推荐(0)     
             
            
            
    C# 获取一些简单的本机信息
    
            
摘要:1.電腦名稱: Environment.MachineName 2.ip地址: System.Net.Dns.GetHostAddresses() 3.mac地址: System.Net.NetworkInformation.NetworkInterface.GetPhysicalAddress() 4.ie版本: 使用 FileVersionInfo.GetVersionInfo() 傳入 IE...
        
阅读全文
                posted @ 
2008-09-02 09:34 
永无止境
        
阅读(635) 
         
        推荐(0)     
             
            
            
    SmartClient传入Url
    
            
摘要:需要添加方法: /// ///获取URL参数 /// /// /// public static string GetUrlParam(string key) { try { Dictionary Sys...
        
阅读全文
                posted @ 
2008-07-17 09:29 
永无止境
        
阅读(209) 
         
        推荐(0)     
             
            
            
    SmartClient的传入Url参数解码
    
            
摘要:System.Web.HttpUtility.UrlDecode 需要注意的是要引用完整的System.Web.dll
        
阅读全文
                posted @ 
2008-07-17 09:15 
永无止境
        
阅读(246) 
         
        推荐(0)     
             
            
            
    RDLC报表使用介绍(转载)
    
            
摘要:源帖地址: http://www.cnblogs.com/wjhx/archive/2006/04/19/379604.html
        
阅读全文
                posted @ 
2008-04-03 18:10 
永无止境
        
阅读(197) 
         
        推荐(0)     
             
            
            
    C#调用API调整应用程序占用物理内存大小
    
            
摘要:.net应用程序启动后会占用大量物理内存,有些客户是不能容忍这样的情况发生,所以必要时要使用虚拟内存替代物理内存的使用。 引用 using System.Runtime.InteropServices; 具体方法: [DllImport("kernel32.dll")] private static extern bool SetProcessWorkingSe...
        
阅读全文
                posted @ 
2008-03-27 15:01 
永无止境
        
阅读(1767) 
         
        推荐(0)