Microsoft KB Archive/90965

= ReadOnly Properties are Linked When Custom Control Is Enabled =

PSS ID Number: 90965

Article Last Modified on 1/8/2003

-

The information in this article applies to:


 * Microsoft Visual Basic for MS-DOS 1.0

-



This article was previously published under Q90965



SYMPTOMS
Setting the Enabled property of a custom control will cause the ReadOnly property to be set to the same value, and setting the ReadOnly property of a custom control will cause the Enabled property to be set to the same value.

Setting one of these properties for a custom control inadvertently sets the other to the same value.



STATUS
Microsoft has confirmed this to be a bug in Microsoft Visual Basic for MS-DOS, version 1.0. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



MORE INFORMATION
If you use the ReadOnly property in your custom control, trap the value when set by the user, and store it internally in your custom control code. Use this internal value to control ReadOnly behavior and return the correct value to the user whenever the property is read.

