Simple question but it seems quite awkward to me. How do I enable a button only when an item within a tilelist is currently selected?
For example lets say if I have a button called button1 that is disabled by default and a tilelist called tilelist1 what would I have to add into the brackets of the following code (enabled property of the button) to ensure that the button is only enabled when an item in the tilelist is currently selected but disabled when no items are selected:-
that should do it, it's making an implicit comparision with null (tilelist1.selectedItem == null) which will result in a boolean.
SelectedItem is null when nothing is selected , not null when something is.
That works great. Thanks a lot.