How to Create a Read-Only Text Box Using SendMessage API (110403)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 2.0
- Microsoft Visual Basic Standard Edition for Windows 3.0
- Microsoft Visual Basic Professional Edition for Windows 2.0
- Microsoft Visual Basic Professional Edition for Windows 3.0
This article was previously published under Q110403 SUMMARY
Visual Basic does not have a Read-Only property for a text box. But you can
create a read-only text box by calling the Windows API SendMessage function
with the EM_SETREADONLY message.
Modification Type: | Major | Last Reviewed: | 12/9/2003 |
---|
Keywords: | KB110403 |
---|
|