how do I lock a combo box but still allow the user to view the contents
-
I have seen a way to do this a week ago, but cannot find the link. I want the user to view all the items in the combo box, but I don't want them to change the value. Has anyone seen this link or know the answer? The combo box is on the form. It is not in any other control. Thanks
-
I have seen a way to do this a week ago, but cannot find the link. I want the user to view all the items in the combo box, but I don't want them to change the value. Has anyone seen this link or know the answer? The combo box is on the form. It is not in any other control. Thanks
-
I have tried this already and it still allows the user to select another item (other than the original selected item) in the dropdownlist. This is what I want to prevent. I want them to view it, but not select another item. I want it locked.
Then why you are not using
ComboBox1.Enabled=False
after Selecting the item.......Moreover what do u actually want to do by that...why are u using combo when u dont want your user to select item from it???I am bit confused.....Tirtha Miles to go before I sleep
-
Then why you are not using
ComboBox1.Enabled=False
after Selecting the item.......Moreover what do u actually want to do by that...why are u using combo when u dont want your user to select item from it???I am bit confused.....Tirtha Miles to go before I sleep
Hi. I ended up temporarily doing the following: F2.cmbPub.SelectedValue = strPub F2.cmbPub.Enabled = False F2.cmbPub.DropDownStyle = ComboBoxStyle.Simple This disables the box showing the selected value only. I am coming from a browse screen that has a datagrid with 2 unbound boolean columns, Edit and Delete. The rest of the columns are bound. When I check the Edit box it shows the detail screen with the information for the selected item. I just wanted to be able to allow the user to display the values in the combo box, but not be able to select from it. I wanted the default to be the selected value. I will use the above code for now, but just wanted to know if there was a way to do it. Thanks.