I don't know the tms components (know them, but haven't used them), but normally the SubItems is most likely a class. The MenuItems class has most likely has a property called ItemIndex (name can differ). Just look at the properties for such one...

PrevMnu.MenuItems[6].ItemIndex

Objective reality is a delirium caused by lack of alcohol in blood.There is no place like 127.0.0.1