整理 .Net 2.0 下 WinForms中常用的方法(更新中...)

using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

/*
 * 整理:夏荣全
 * 日期:2008年1月11日
 * 联系:lyout@live.cn
 * 说明:转载请注明出处
 * 使用:Lyout.FormMethods.方法名
*/

namespace Lyout {
    
delegate void SetTextCallback(Control control, string text);
    
delegate void SetEnableCallback(Control control, bool enable);
    
delegate string GetTextCallback(Control control);
    
delegate void ClearItemsCallback(ComboBox comboBox);
    
delegate void AddItemCallback(ComboBox comboBox, object item);

    
/// <summary>
    
/// WinForm中常用的方法类
    
/// </summary>

    public sealed class FormMethods {
        
多线程方法

        
Mdi窗口方法
    }

}



当然,跨线程也可以用 backgroundWorker 组,这就看个人所需了。
原文地址:https://www.cnblogs.com/lyout/p/1034871.html