PRB: "Hash Marks" on ActiveX Controls After Run-Time Error (161305)
The information in this article applies to:
- Microsoft Visual Basic Control Creation Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
This article was previously published under Q161305 SYMPTOMS
After receiving an error message, all instances of the ActiveX control
are disabled and drawn with "hash marks."
CAUSE
This behavior occurs after an unhandled error in event code.
RESOLUTION
The conditions listed below must be met to avoid this problem: - Ensure that the event code never generates a run-time error or that it
handles all errors with an error handler.
- Never use Err.Raise within a UserControl.
STATUS
This behavior is by design.
REFERENCES
Microsoft Visual Basic User's Guide, Chapter 9, Building ActiveX Controls,
Creating Robust Controls.
(c) Microsoft Corporation 1996, All Rights Reserved.
Contributions by Malcolm Stewart, Microsoft Corporation
| Modification Type: | Major | Last Reviewed: | 11/5/2003 |
|---|
| Keywords: | kbprb kbprogramming KB161305 |
|---|
|