Click here to Skip to main content
13,596,708 members
Rate this:
Please Sign up or sign in to vote.
See more: , +
I am using an activeX control which i have created using c#, in an html page. This activeX works fine when we do not mouse over the image button which has src change inline javascript attached to it.When we do mouse over the image butoon it is causing this activeX to flicker by sending resize and repaint on this control.
I have handled doubled buffered and optimised double property on the control.But none of them seem to stop flicker.

Is there anyone who has any idea on this issue? The html code looks like this:
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">

 <div class="ActiveXContainerCls" id="VideoHolder" style="border: 2px solid #808080;height: 500px; width: 500px" />
        <script type="text/javascript">
            var obj;
            try {
             var activeXHolder = document.getElementById("VideoHolder");
             objectId = "test";
             var CLSIDOBJ = "clsid:0991EA56-C93E-4D30-ACC7-13CC0E4F1B5B";
             activeXHolder.innerHTML = "<object Id = '" + objectId + "' classid='" + CLSIDOBJ + "'height=" + "100% width=" + "100% />";
             obj = document.getElementById(objectId);

                if (obj) {                

                } else {
                    alert("Object is not created!");
            catch (ex) {

                alert("Some error happens, error message is: " + ex.message);

            function Button1_onclick() {

                obj = document.DemoActiveX;       
            if (obj) {
                alert("button click");

 <input type="image" src="VCButtonImages/record-normal.png" id="record" class="btnRecordCls"

                                                                                    alt="Record" title="Record" onmouseover="javascript:this.src='VCButtonImages/record-hover.png'"

                                                                                     önmouseout="javascript:this.src='VCButtonImages/record-normal.png'" />
       <input id="Button1" type="button" value="Pan" onmousemove="javascript:return false;" onmouseout="javascript:return false"  önclick="return Button1_onclick()" />
Posted 27-Dec-12 21:19pm
Updated 27-Dec-12 21:57pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web04 | 2.8.180621.3 | Last Updated 28 Dec 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100