【www.gdgbn.com--组件控件开发】

asp教程.net radiobutton控件响应双击方法
*/

using system;
using system.collections.generic;
using system.text;
using system.windows.forms;
using system.threading;
using system.runtime.interops教程ervices;
using system.diagnostics;
using system.data;
using system.data.oledb;

namespace windowsformsapplication1
{
    public partial class form1 : form,imessagefilter
    {
        public form1()
        {
            initializecomponent();
            application.addmessagefilter(this);
        }

        private int wm_lbuttondblclk = 0x0203;

        public bool prefiltermessage(ref message msg)
        {
            if (msg.hwnd == this.radiobutton1.handle && msg.msg == wm_lbuttondblclk)
            {
                messagebox.show("触发双击事件");
            }

            return true;
        }
    }
}

本文来源:http://www.gdgbn.com/asp/27926/