Exemplo n.º 1
0
        public static HtmlEventProxy Create(string eventName, object htmlElement, EventHandler eventHandler)
        {
            IHTMLElement2 elem = (IHTMLElement2)htmlElement;

            HtmlEventProxy newProxy = new HtmlEventProxy(eventName, elem, eventHandler);
            elem.attachEvent(eventName, newProxy);
            return newProxy;
        }
Exemplo n.º 2
0
        public static HtmlEventProxy Create(string eventName, object htmlElement, EventHandler eventHandler)
        {
            IHTMLElement2 elem = (IHTMLElement2)htmlElement;

            HtmlEventProxy newProxy = new HtmlEventProxy(eventName, elem, eventHandler);

            elem.attachEvent(eventName, newProxy);
            return(newProxy);
        }