Hashtable ht = new Hashtable();
ht.Add("0", "One");
ht.Add("1", "Two");
ht.Add("2", "Three");
ht.Add("3", "Four");
int i=1;
private void button1_Click(object sender, RoutedEventArgs e)
{
string in="\""+i+"\"";
txtObjects.Text =i.tostring();
txtValues.Text = ht[in] ;
i = (ht.Count % i) + 1;
}