How set readonly on combox control?

  • Thread starter Thread starter Li Pang
  • Start date Start date
L

Li Pang

I can only use combox1.enabled = false to stop entering
data, but it's gray out the control (not nice). Is there a
way to set readonly on the control (or set the color back
to white)?

Thanks

Li
 
Set the Style property to "Dropdown List" and you will be
ok.

Armineh Gh.
 
No. "Downdown List" can only prevent to enter data, but it
can still change data. What I want is to stop the user to
change the data.
 
* "Li Pang said:
No. "Downdown List" can only prevent to enter data, but it
can still change data. What I want is to stop the user to
change the data.

Disable the control by setting its 'Enabled' property to 'False'.
Notice that this will change the colors of the control too.
 

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