ActiveX Troubleshooting


ActiveX Troubleshooting

• PRB: Event Firing Changes in MFC May Break Some Containers
(157970) - ActiveX Control containers implemented with Borland Delphi (and possibly other containers as well) may not see events fired by ActiveX Controls created with MFC version 4.2. The same container may have been able to handle events fired by a version...
http://support.microsoft.com/default.aspx?scid=kb;en-us;157970

• BUG: Server Not Released if Raise Error in Class_Initialize
(193438) - Raising an error in the Initialize event of a class module in an EXE server keeps the server from being released. Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. Steps to Reproduce...
http://support.microsoft.com/default.aspx?scid=kb;en-us;193438

• SAMPLE: AtlEvnt.exe Creates ATL Sinks Using IDispEventImpl
(194179) - AtlEvnt.exe shows you how to implement an event sink using the ATL IDispEventImpl and IDispEventSimpleImpl classes. For composite controls or ATL dialogs, the wizard inserts IDispEventImpl in the inheritance list to set up the sink. So the focus...
http://support.microsoft.com/default.aspx?scid=kb;en-us;194179

• PRB: Firing Event in Second Thread Causes IPF or GPF
(196026) - In Visual Basic, an event fired by an ActiveX component from a thread other than the main thread will sometimes cause an Invalid Page Fault (IPF) or General Protection Fault (GPF). Usually it seems to work fine in the Visual Basic IDE but fails...
http://support.microsoft.com/default.aspx?scid=kb;en-us;196026

• BUG: Dynamic Private UserControl Extender Events Do Not Show
(196131) - If you declare the variable using early-binding syntax when you dynamically add an instance of a private UserControl, you cannot see or use any of the control's extender properties or events. You are only able to see and use the raw properties and...
http://support.microsoft.com/default.aspx?scid=kb;en-us;196131

• BUG: CausesValidation Property Does Not Trigger Validate Event
(197128) - The Validate event of a control is not executed when it loses focus to another control that has its CausesValidation property set to True. Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of...
http://support.microsoft.com/default.aspx?scid=kb;en-us;197128

• How To Enable ActiveX Control Event Handling on a Web Page
(200839) - An ActiveX control must implement the IProvideClassInfo or IProvideClassInfo2 interface to enable event handling on a Web page. Microsoft Internet Explorer uses this interface to obtain the type library for the control and determine the available...
http://support.microsoft.com/default.aspx?scid=kb;en-us;200839

• PRB: IPF from UserControl with a User-Defined Validate Event
(217026) - You have a control that contains: event Validate(Cancel as Boolean) event Change() You get an Invalid Page Fault (IPF) when the control fires the Change event. When you put a control on the Visual Basic form, Visual Basic creates an extended...
http://support.microsoft.com/default.aspx?scid=kb;en-us;217026

• PRB: Validate Event Does Not Fire When Changing Focus with Mouse to ATL Control
(230326) - When you use an Active Template Library (ATL) control created with Visual C++ in Visual Basic and set the CausesValidation property of all controls on the form to TRUE, moving focus with the TAB key triggers Validate events to fire correctly....
http://support.microsoft.com/default.aspx?scid=kb;en-us;230326

• FIX: DataMemberChanged Fails for UserControls
(223099) - The DataMemberChanged method is used to notify data consumers that a data member of a data source has changed, allowing the data consumers to refresh the data. This method works correctly if called from a Class module. If this method is called...
http://support.microsoft.com/default.aspx?scid=kb;en-us;223099

• FIX: Error picking deleted object from dropdown list
(223107) - A class module in a Standard EXE project contains a declaration for a public event. A form in the Standard EXE project instantiates an object variable based on the class module with the WithEvents keyword. When you delete the declaration statement...
http://support.microsoft.com/default.aspx?scid=kb;en-us;223107

• FIX: Incorrect Firing of LostFocus Event
(223131) - A Visual Basic 6.0 project contains two forms with Form1 containing a TextBox and a CommandButton. The LostFocus event of the TextBox displays a second form as modal. When you run the project and click the CommandButton, the modal form appears and...
http://support.microsoft.com/default.aspx?scid=kb;en-us;223131

• BUG: TreeView: NodeCheck Event Does Not Occur
(221557) - When a TreeView control with the Checkboxes property set to True is placed on a form and the user presses the left-mouse button over a checkbox and then drags the mouse away from the checkbox before releasing the mouse button, the state of the...
http://support.microsoft.com/default.aspx?scid=kb;en-us;221557

• BUG: Moving Controls on a Form Triggers Form_MouseMove Event
(231689) - When you move controls on a form and the cursor is over the form, the form's MouseMove event gets triggered even if the cursor is not moving. In this scenario, if you need to place code in the form's MouseMove event and want to be sure it runs...
http://support.microsoft.com/default.aspx?scid=kb;en-us;231689

• BUG: Treeview Control NodeClick Event Not Raised When SingleSel = True
(240229) - After setting the SingleSel property of the Treeview control to True , the NodeClick event for this control is not always raised. This only occurs with the version of Mscomctl.ocx that is included in Visual Basic 6.0 Service Pack 3. Visual Basic...
http://support.microsoft.com/default.aspx?scid=kb;en-us;240229

• FIX: Events Fail in ATL Containers when Enum Used as Event Parameter
(237771) - An ATL event sink defined with SINK_ENTRY or SINK_ENTRY_EX will fail to catch an event when an enum is used as one of the parameters for the event. The failure code returned by IDispatch::Invoke is "0x80070057 (E_INVALIDARG - The parameter is...
http://support.microsoft.com/default.aspx?scid=kb;en-us;237771

• How To Fire TabStrip's Click Event When Using Msgbox in BeforeClick
(238312) - If a message box is displayed in a TabStrip control's BeforeClick event handler, the TabStrip control's Click event handler will not be fired, even if the Cancel parameter is set to False. In some situations it may be necessary to validate the...
http://support.microsoft.com/default.aspx?scid=kb;en-us;238312

• BUG: ATL Events Don't Fire If Defined With Interface Alias
(244204) - When using IDispEventImpl to sink events in an ATL container, the event does not fire and the IDispatch::Invoke call to fire the event returns S_OK. The event actually fails in the call to ITypeInfo2::GetFuncIndexOfMemId with an HRESULT of...
http://support.microsoft.com/default.aspx?scid=kb;en-us;244204

• How To Sink HTML Document Events for WebBrowser Host
(246247) - Developers who host the WebBrowser control in either Microsoft Visual C++ or Visual Basic frequently want to sink events for the currently loaded document. This is very handy for providing global behavior that browser authors want to implement...
http://support.microsoft.com/default.aspx?scid=kb;en-us;246247

• CustWBC.exe: ATL HTML Control Customizes the WebBrowser Control
(247073) - CustWBC.exe is a sample that illustrates how you can control the WebBrowser control that is embedded in an ATL HTML control. In particular, the sample demonstrates three points: How to provide a custom implementation of the...
http://support.microsoft.com/default.aspx?scid=kb;en-us;247073

• BUG: IDispEventImpl Event Handlers May Give Strange Values for Parameters
(241810) - When using IDispEventImpl in a client that is sinking events with parameters that have different data types with different sizes, the handlers of the events will get incorrect values for the event parameters. The following sample IDL code will...
http://support.microsoft.com/default.aspx?scid=kb;en-us;241810

• FIX: FieldChangeComplete Not Fired When UserControl Loses Focus by Mouse-Click
(258017) - Using a UserControl control that contains another usercontrol and a TextBox control, which is bound to a Field object of an ADO Recordset object, the FieldChangeComplete event of the ADO RecordSet object is not fired after the TextBox control has...
http://support.microsoft.com/default.aspx?scid=kb;en-us;258017

• FIX: ListView Executes the ItemClick Event Twice with LabelEdit Set to Manual
(257495) - When you click on an item in a ListView control, the ItemClick event for the ListView control executes twice. This problem is caused by the way in which manual label editing is implemented. When you select an item, the ItemClick event is fired...
http://support.microsoft.com/default.aspx?scid=kb;en-us;257495

• FIX: MouseDown Event Fires Unexpectedly on Modal Form
(257543) - If the Validate event for a control shows another form modally, then the MouseDown event of the modal form or the control that is under the mouse pointer is fired unexpectedly. Microsoft has confirmed that this is a bug in the Microsoft products...
http://support.microsoft.com/default.aspx?scid=kb;en-us;257543

• FIX: UserControl Validate Event Hangs the VB IDE
(257741) - If a UserControl has a control with code in the Validate event, and it is sited on a form in a Standard EXE project, the project causes the system to lock up when it is run in the Visual Basic integrated development environment (IDE). This problem...
http://support.microsoft.com/default.aspx?scid=kb;en-us;257741

• FIX: SSTab Events May Fire Despite Cancel = True
(260373) - The SSTab control Click event and GotFocus event are fired even when the CausesValidation property of SSTab is True and the control losing Focus sets Cancel to True in the Validate event. To resolve this problem, install the latest service pack...
http://support.microsoft.com/default.aspx?scid=kb;en-us;260373

• BUG: Events with Names Containing an Underscore Are Not Received in Visual Basic
(271664) - A custom event containing an underscore character ( _ ) as part of the event's name is not received in a Visual Basic event handler. The Visual Basic integrated development environment (IDE) generates code for the event handler in the general...
http://support.microsoft.com/default.aspx?scid=kb;en-us;271664

• PRB: Sheridan Command Button Click Event Is Raised in WhatsThisMode
(278611) - The Click event of a Sheridan command button fires when it tries to retrieve the WhatsThisHelp property on the button. The Click event should not be raised when WhatsThisMode is active. The MouseDown event of the Sheridan command button does not...
http://support.microsoft.com/default.aspx?scid=kb;en-us;278611

• BUG: KeyPress Event Behaves Differently in a Compiled Executable
(299615) - After displaying a dialog box in the KeyDown event, the KeyPress event is not raised when you run a project in the Integrated Development Environment (IDE). However, if you build the project into an executable file, the KeyPress event is raised....
http://support.microsoft.com/default.aspx?scid=kb;en-us;299615

• PRB: Programmatically Changing Focus Does Not Cause Validation
(314431) - Code that changes the value of a TextBox or of another control, and then moves the focus to another control where the CausesValidation property is True does not fire the Validate events of the changed control. This behavior occurs because changing...
http://support.microsoft.com/default.aspx?scid=kb;en-us;314431

• BUG: The Validate Event Does Not Fire for Controls on the SSTab
(313834) - The Validate event of a control is not raised if the container for that control is the Microsoft Tabbed Dialog Control (Tabctl32.ocx). This problem occurs if there is a Label control on one of the tabs of the Tabbed Dialog Control. Use one of the...
http://support.microsoft.com/default.aspx?scid=kb;en-us;313834

• BUG: Conditionally Compiled Public Events May Cause an Access Violation
(320103) - If you use conditionally compiled public events, you may receive an access violation in the Microsoft Visual Basic development environment. This error may occur during compilation or when you shut down the development environment. This problem can...
http://support.microsoft.com/default.aspx?scid=kb;en-us;320103

• BUG: FileDownload Event Handler in .NET WebBrowser Host Is Never Called
(325204) - If you sink the FileDownload event of the DWebBrowserEvents2 source interface for the WebBrowser control that is hosted on a managed application in Visual C# .NET, the event handler is not called. According to the documentation, the FileDownload...
http://support.microsoft.com/default.aspx?scid=kb;en-us;325204

• HOW TO: Establish a COM Event Sink with Return Values in the .NET Framework by Using Visual Basic .NET
(810228) - This step-by-step article describes how to declare and establish a COM event sink by using sink objects in Microsoft Visual Basic .NET. The sample that appears in this article creates one sink object that implements all the events that are exposed...
http://support.microsoft.com/default.aspx?scid=kb;en-us;810228

• BUG: DrawCell Event of vsFlexArray and vsFlexGrid Controls in Visual Basic 6.0 Is Not Upgraded to Visual Basic .NET
(814316) - A project that was created by using Microsoft Visual Basic 6.0 and the Standard EXE project template contains either the vsFlexArray ActiveX control or the vsFlexGrid ActiveX control, and the DrawCell event of the control is defined. After you...
http://support.microsoft.com/default.aspx?scid=kb;en-us;814316

• How To Establish a COM Event Sink in the .NET Framework With Return Values by Using Visual C# .NET
(811645) - This step-by-step article describes how to declare and establish a COM event sink by using sink objects in Microsoft Visual C# .NET. The sample that appears in this article creates one sink object that implements all the events that are exposed by...
http://support.microsoft.com/default.aspx?scid=kb;en-us;811645

• How to invoke the View Source dialog box, the Find dialog box, and the Internet Options dialog box for the WebBrowser control
(815716) - Discusses how to invoke three dialog boxes for the WebBrowser control in Visual C++ .NET. The dialog boxes are View Source, Find, and Internet Options.
http://support.microsoft.com/default.aspx?scid=kb;en-us;815716

• How to dynamically add ActiveX controls that require run-time licenses in Visual C++ .NET
(816196) - Discusses how to dynamically add ActiveX controls that require Run-Time licences in Visual C++ .NET
http://support.microsoft.com/default.aspx?scid=kb;en-us;816196

• You may receive the "ATLASSERT" error message while hosting an ActiveX control in a COM DLL that is statically linked to the ATL in Visual C++ .NET
(832687) - When you try to create and to display the Microsoft Internet Explorer control or the Microsoft Foundation Classes (MFC) ActiveX Controls that request ambient properties and that link statically to the Active Template Library (ATL) in an COM DLL...
http://support.microsoft.com/default.aspx?scid=kb;en-us;832687

• How to use Forward and Back buttons for the WebBrowser control in Visual Basic .NET and in Visual C# .NET
(836128) - Explains how to enable and disable the Forward and Back buttons for the WebBrowser control.
http://support.microsoft.com/default.aspx?scid=kb;en-us;836128

• Playlist on a Web page only plays the first sound file
(836436) - Discusses the problem where a Web page with an embedded Windows Media Player control only plays the first sound file in a playlist (.asx).
http://support.microsoft.com/default.aspx?scid=kb;en-us;836436

• The .NET client application cannot catch the events that are raised by an Office Spreadsheet 11.0 ActiveX control
(834614) - Explains that the managed code does not catch the events that are raised by the existing ActiveX controls such as the EndEdit event of the Microsoft Office SpreadSheet ActiveX control.
http://support.microsoft.com/default.aspx?scid=kb;en-us;834614

• How To Search for COM and DCOM Knowledge Base Articles
(249726) - When searching for Microsoft Knowledge Base articles concerning COM and DCOM, you can use the Knowledge Base keywords provided in the following tables as criteria to help filter your search results. Knowledge Base Keywords for COM and DCOM...
http://support.microsoft.com/default.aspx?scid=kb;en-us;249726

• How to query the Microsoft Knowledge Base by using keywords and query words
(242450) - Describes and lists keywords and query words that you can use to search Microsoft Knowledge Base articles.
http://support.microsoft.com/default.aspx?scid=kb;en-us;242450
Back To The Top

Bud's CDs FREE MP3s     Alphabetical Index Of Everything In This Site