You can disable or enable listbox items interactively or programmatically.
Right-click a listbox item and select Disable Item from the shortcut menu to interactively disable a listbox item. Right-click a listbox item and select Enable Item from the shortcut menu to interactively enable a disabled item.
Complete the following steps to programmatically disable listbox items.