void Interop.IHTMLGenericEvents.Invoke(int dispid, ref Guid g, int lcid, int dwFlags, Interop.DISPPARAMS pdp, object[] pvarRes, Interop.EXCEPINFO pei, int[] nArgError) { nArgError = new int[] { Interop.S_FALSE }; _eventobj = this.GetEventObject(); if (_eventobj != null && _eventobj.srcElement != null) { //System.Diagnostics.Debug.WriteLineIf(_eventobj.srcElement != null, _eventobj.type, " EVENTSINK " + _eventobj.srcElement.GetTagName()); if (ElementEvent != null) { ElementEvent(this, _eventobj); } switch (_eventobj.type) { case "help": break; case "click": _control.InvokeClick(_eventobj); break; case "dblclick": _control.InvokeDblClick(_eventobj); break; case "keypress": _control.InvokeKeyPress(_eventobj); break; case "keydown": break; case "keyup": break; case "mouseout": _control.InvokeMouseOut(_eventobj); break; case "mouseover": _control.InvokeMouseOver(_eventobj); break; case "mousemove": _control.InvokeMouseMove(_eventobj); break; case "mousedown": _control.InvokeMouseDown(_eventobj); break; case "mouseup": _control.InvokeMouseUp(_eventobj); break; case "selectstart": _control.InvokeSelectStart(_eventobj); break; case "filterchange": _control.InvokeFilterChange(_eventobj); break; case "dragstart": _control.InvokeDragStart(_eventobj); break; case "beforeupdate": break; case "afterupdate": break; case "errorupdate": break; case "rowexit": break; case "rowenter": break; case "datasetchanged": break; case "dataavailable": break; case "datasetcomplete": break; case "losecapture": _control.InvokeLoseCapture(_eventobj); break; case "propertychange": _control.InvokePropertyChange(_eventobj); break; case "scroll": _control.InvokeScroll(_eventobj); break; case "focus": _control.InvokeFocus(_eventobj); break; case "blur": _control.InvokeBlur(_eventobj); break; case "resize": _control.InvokeResize(_eventobj); OnResize(); break; case "drag": _control.InvokeDrag(_eventobj); break; case "dragend": _control.InvokeDragEnd(_eventobj); break; case "dragenter": _control.InvokeDragEnter(_eventobj); break; case "dragover": _control.InvokeDragOver(_eventobj); break; case "dragleave": _control.InvokeDragLeave(_eventobj); break; case "drop": _control.InvokeDrop(_eventobj); break; case "beforecut": _control.InvokeBeforeCut(_eventobj); break; case "cut": _control.InvokeCut(_eventobj); break; case "beforecopy": _control.InvokeBeforeCopy(_eventobj); break; case "copy": _control.InvokeCopy(_eventobj); break; case "beforepaste": _control.InvokeBeforePaste(_eventobj); break; case "paste": _control.InvokePaste(_eventobj); break; case "contextmenu": _control.InvokeContextMenu(_eventobj); break; case "rowsdelete": break; case "rowsinserted": break; case "cellchange": break; case "readystatechange": break; case "beforeeditfocus": _control.InvokeEditFocus(_eventobj); break; case "layoutcomplete": _control.InvokeLayoutComplete(_eventobj); break; case "page": _control.InvokePage(_eventobj); break; case "beforedeactivate": _control.InvokeBeforeDeactivate(_eventobj); break; case "beforeactivate": _control.InvokeBeforeActivate(_eventobj); break; case "move": _control.InvokeMove(_eventobj); break; case "controlselect": _control.InvokeControlSelect(_eventobj); break; case "movestart": _control.InvokeMoveStart(_eventobj); OnMoveStart(); break; case "moveend": _control.InvokeMoveEnd(_eventobj); OnMoveEnd(); break; case "resizestart": _control.InvokeResizeStart(_eventobj); OnResizeStart(); break; case "resizeend": _control.InvokeResizeEnd(_eventobj); break; case "mouseenter": _control.InvokeMouseEnter(_eventobj); break; case "mouseleave": _control.InvokeMouseLeave(_eventobj); break; case "mousewheel": _control.InvokeMouseWheel(_eventobj); break; case "activate": _control.InvokeActivate(_eventobj); break; case "deactivate": _control.InvokeDeactivate(_eventobj); break; case "focusin": _control.InvokeFocusIn(_eventobj); break; case "focusout": _control.InvokeFocusOut(_eventobj); break; case "load": _control.InvokeLoad(_eventobj); break; case "error": _control.InvokeError(_eventobj); break; case "change": _control.InvokeChange(_eventobj); break; case "abort": _control.InvokeAbort(_eventobj); break; case "select": _control.InvokeSelect(_eventobj); break; case "selectionchange": _control.InvokeSelectionChange(_eventobj); break; case "stop": _control.InvokeStop(_eventobj); break; case "reset": break; case "submit": break; } } }