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
 
Back
Top