foreach (DictionaryEntry de in hashTable) { System.Windows.Forms.MessageBox.Show(de.Key.ToString()); System.Windows.Forms.MessageBox.Show(de.Value.ToString()); }