Hi, I need to know if it’s possible to restrict the writing in a combo box or text box of a form (it seemed to the keycode=0 in the event keypress of the VB). Thanks.
Hi, Why not simply setting allowEdit(false)? [:)]
Because if I put the allowEdit(false), I can’t select any value of the combo box, and I need to select any value of the combo. Thanks.
For combobox make it to have ComboType = List. Lists are view-only comboboxes.
Thanks for your reply, but I have expressed me badly, because I have a text box that I transform it to a combo box. If you know some method to restrict the writing in a text box, but that be controlled throw code (and not utilitze allowEdit) or any thing seemed? Thanks!
I think you are making some confusions. You are converting text box to combo box … hmm … how are you doing that? Are you sure is not just the same textbox with a lookup button? This would explain your statements. Otherwise, you can successfully use TextBox.allowEdit(false) directly from code. Please let us know so we can guide you to the right direction [:)]