Lock fields

  • Thread starter Thread starter Harshil Patel
  • Start date Start date
H

Harshil Patel

Hi

I am trying to lock fields on my form (VB.NET), so that they cannot be
edited by the user. So far I have accomplished my goal for the text box
by setting its read only property. But what should I do for combo box
and mask edit box (added as an reference). list box etc. I don't want to
use the enabled property, since that makes the controls text to fade or
not seen prominently.

Does anyone know how can we achieve this in VB.NET ??

Thanks
 
For ComboBox set DropDownStyle property to DropDownList

With ListBox: a user cannot edit the contents anyway, so you need not worry.


Deepak

#*#*#*#*#*#*#*#*#*#*#*
I Code therefore I am
 

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

Back
Top