Article ID: 555662 - Last Review: July 13, 2006 - Revision: 1.0 Automatic ActiveX Activation in Visual Studio 2003 and 2005
SUMMARYThis article describes the workaround to activating ActiveX controls in Internet Explorer. AbstractActiveX objects rendered using the <object>, <applet> or <embed> tag in Internet Explorer need to be explicitly enabled before they will run. The explicit step usually requires an extra mouse click or space bar and enter key press. The activation restriction was implemented by Microsoft as a remedy to the Eolas Technologies Inc. patent infringement lawsuit. Microsoft has adjusted the way in which browser activation occurs by releasing a software patch to Internet Explorer 912945 to cause the browser to load the ActiveX control in an inactive state by default meaning that the control will respond to programmatic instructions but not to user events. The workaround suggested by Microsoft is to load the ActiveX control from an external script file. Controls loaded in this way are immediately active and do not require any user click. Follow the code below to implement the workaround.
Note: The example illustrates a managed ActiveX control. Unmanaged ActiveX controls would simply need to change the classid. One other workaround is to uninstall the Internet Explorer 912945 patch from Control Panel. However, Microsoft may possibly add the software patch as a cumulative security patch to Windows update automatically. Therefore, this approach is recommended. The details of the Internet Explorer patch may be found here http://www.microsoft.com/technet/security/advisory/912945.mspx COMMUNITY SOLUTIONS CONTENT DISCLAIMERMICROSOFT CORPORATION AND/OR ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY, RELIABILITY, OR ACCURACY OF THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN. ALL SUCH INFORMATION AND RELATED GRAPHICS ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT AND/OR ITS RESPECTIVE SUPPLIERS HEREBY DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THIS INFORMATION AND RELATED GRAPHICS, INCLUDING ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, WORKMANLIKE EFFORT, TITLE AND NON-INFRINGEMENT. YOU SPECIFICALLY AGREE THAT IN NO EVENT SHALL MICROSOFT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY DIRECT, INDIRECT, PUNITIVE, INCIDENTAL, SPECIAL, CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF USE, DATA OR PROFITS, ARISING OUT OF OR IN ANY WAY CONNECTED WITH THE USE OF OR INABILITY TO USE THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN, WHETHER BASED ON CONTRACT, TORT, NEGLIGENCE, STRICT LIABILITY OR OTHERWISE, EVEN IF MICROSOFT OR ANY OF ITS SUPPLIERS HAS BEEN ADVISED OF THE POSSIBILITY OF DAMAGES. | Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email

Back to the top
