Hello, there was a problem with working with ListBox
'mi.
The program provides two ListBox
'a, four buttons. The first two buttons drag one line from one list to another (1-> 2 and 2-> 1, respectively). The second two buttons drag the selected group in the same way as the first two buttons. The problem is as follows:
How to make the program check whether we have selected any item in the list or not? If not selected, the button for this list simply does not work.
In general, how to set up checks in order for us to select a line in the list, without using the
ListBox Clik
procedure, so that everything works exclusively through buttons?
ListBox1.SelCount
- the number of selected entries. The verification condition should be based on it. - KiTE