PRB: UserControl Resize Event Fails with MoveWindow API (187740)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q187740 SYMPTOMS
The Resize Event of a UserControl will not fire if you use the MoveWindow
API function to resize the window of the UserControl.
NOTE: Other API calls that manipulate the UserControl window, such as
SetWindowPos, may also show this behavior.
CAUSE
When you manipulate the UserControl window through API calls, you bypass
the UserControl Object. So any of the events that would normally get raised
from a COM call to the UserControl may fail when you bypass the UserControl
object and manipulate the UserControl's window directly.
RESOLUTION
Use the Visual Basic Move method.
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article. We are researching this problem
and will post new information here in the Microsoft Knowledge Base as it
becomes available.
| Modification Type: | Major | Last Reviewed: | 5/13/2003 |
|---|
| Keywords: | kbprb KB187740 |
|---|
|