Locked Property Changes in Visual Basic .NET
In Visual Basic 6.0, the Locked property of a ComboBox control determined whether the text-box portion of the control could be edited. In Visual Basic .NET, the Locked property prevents a control from being moved at design time. There is no direct equivalent for the Visual Basic 6.0 Locked property.
What to do next
- Change the DropDownStyle property of the ComboBox control to DropDownList.
Note In Visual Basic 6.0, setting the Locked property to true also prevented the selection from being changed. You can duplicate this behavior by canceling the selection in the MouseDown event.
ComboBox Control Changes in Visual Basic .NET | UserControl Changes in Visual Basic .NET