BUG: Run-Time Error 458 When Late-Binding Rich TextBox Control (191205)
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 Q191205 SYMPTOMS
When you access the BackColor property of a Rich TextBox Control that is
late-bound, the following error occurs when you run the program:
Error 458: Variable uses an Automation type not supported in Visual
Basic.
RESOLUTION
Instead of late-binding the control, try to early-bind it. For example, you
can replace the following code:
Dim ctl As Control
Set ctl = RichTextBox1
with:
Dim ctl As RichTextBox
Set ctl = RichTextBox1
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products
listed at the beginning of this article. We are researching this
bug and will post new information here in the Microsoft Knowledge
Base as it becomes available.
Modification Type: | Major | Last Reviewed: | 5/13/2003 |
---|
Keywords: | kbBug kbcode kbCtrl kberrmsg kbpending KB191205 |
---|
|