BUG: Events that are raised by using the RaiseEvent statement in a constructor are not handled (832793)
The information in this article applies to:
- Microsoft Visual Studio 2005 Standard Edition
- Microsoft Visual Studio 2005 Professional Edition
- Microsoft Visual Studio .NET (2002), Professional Edition
- Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
- Microsoft Visual Basic 2005
- Microsoft Visual Basic .NET (2003)
- Microsoft Visual Basic .NET (2002)
SYMPTOMSMicrosoft Visual Basic 2005, Microsoft Visual Basic .NET, Microsoft Visual Studio 2005, and Microsoft Visual Studio .NET 2002 applications do not handle
events that you raise by using the RaiseEvent statement in a constructor.CAUSEThis behavior occurs because a class is in the process being
created while the code in the constructor is running. Therefore, no listener
can trap the event that you raise.STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.REFERENCES
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
319823
How to handle events in Visual
Basic .NET
For additional information, visit the following Microsoft
Developer Network (MSDN) Web site:
Modification Type: | Minor | Last Reviewed: | 10/3/2006 |
---|
Keywords: | kbvs2005swept kbvs2005applies kbvs2002sp1sweep kbpending kbEvent kbbug KB832793 kbAudDeveloper |
---|
|