listbox and read mode

DevAccess

Registered User.
Local time
Today, 11:55
Joined
Jun 27, 2016
Messages
321
hello

I have listbox that I want to make it as readonly mode, what is the best way to do that, I want to make it edit only when user clicks on Edit button.


The problem is that when form loads only listbox remains in edit mode rest of the control like text fields and combobox are read only.

Can anyone please help me on this.

Thanks
DD
 
Use the Locked property of the list box
sub YourButton_OnClick
me.YourListBox.Locked = not me.YourListBox.Locked
 
This does not work,...
 
I want to make it as readonly mode
What does this mean? A listbox does not have a Read Only mode. You need to describe this mode in observable terms so that we can know what you mean, and maybe we can help you simulate such a mode.
 
What does this mean? A listbox does not have a Read Only mode. You need to describe this mode in observable terms so that we can know what you mean, and maybe we can help you simulate such a mode.


When form loads all the fieds except listbox remains read mode , therefore I want to make it read mode when form loads, it should be editable only when edit button has been clicked.
 
it's not really clear what you want. is the listbox bound to a query or a value list? If its a value list then you would set the AllowValueListEdits to false.
 
how is the listbox editable? do you mean that you dont want it to be selectable?
 
how is the listbox editable? do you mean that you don't want it to be selectable?


Listbox should be editable only when user click on edit button.. when forms loads the listbox is not editable but selection with checkbox are clickable.

I don't want that to happen, user can only select and unselect checkbox in listbox only when it is in edit mode.

Thanks
DD
 

Users who are viewing this thread

Back
Top Bottom