Sorry to write this post.

It is simple solution:


dim st as integer
st = DomainUpDown.SelectedIndex()