BUG: Cannot Set RichTextBox Visible Property to False (189483)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
This article was previously published under Q189483 SYMPTOMS
Setting the Visible property of a Rich TextBox control to False does not
hide the control after using the Span method of that control.
RESOLUTION
To work around this problem, add a call to the ShowWindow API function,
passing the SW_HIDE constant after setting the Visible property of the Rich
Textbox to False. This can be tested by uncommenting the following line in
the sample code in the MORE INFORMATION section below:
result = ShowWindow(RichTextBox1.hwnd, SW_HIDE)
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.
REFERENCES
For more information please see the following article in the Microsoft
Knowledge Base:
149463 RichTextBox Appears Even If Visible Property is False
Modification Type: | Major | Last Reviewed: | 11/18/2003 |
---|
Keywords: | kbbug kbnofix KB189483 |
---|
|