move cursor to end of box to get rid of highlight

  • Thread starter Thread starter Gary
  • Start date Start date
G

Gary

i very kind person in this forum told me how to do this for a text box
control, by setting the on enter property to run the following code.

Me![control name].SelStart = Me![control name].SelLength

which works great. Now i want to do the same thing for a combo box,
(get rid of that god awful black highlight.) but this code doesn't work
for combo boxe's it says im not allowed to run that code on a combo
box.

Can any clever person modify it to work on a combo box control please.

thanks,

Gary
 
Hi thank's
but that's a link to the code i typed above, it works fine for txtbox
but not for combo box

=(

Gary.
 

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