Locked Property Changes of Combobox in Visual Basic .NET???

T

Tech

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.

Would anybody please tell me how to code it? thanks a lot.



(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top