I've created an application that connects to a remote box's registry. I can successfully connect, and I even have a combo box that auto-populates each time you drill down farther into the registry with new subkeys. The problem in a list box that I populate with the Value Names each time you drill down into a subkey. When you click on the Value Name, the Value Data should get displayed in a text box in the same form. Unfortunately, sometimes the text box displays "System.String[]". I understand that not all registry entries are string values, and so it is simply populating the text box with what it knows. I just don't know how to do it RIGHT! ;P Can anyone help? The code for the method I currently have all screwed up is below:

==============================================
private void lstbxRegValueNames_SelectedIndexChanged(object sender, System.EventArgs e)
{
try
{
string getVal = subKey.GetValue(lbxReg.SelectedItem.ToString()).ToString();
txtKeyValueData.Text = getVal.ToString();
}
catch(Exception eGetValueData)
{
MessageBox.Show(eGetVal.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
==============================================

I know there are just WAY too many ToString()'s in there, but it is the only way I could even get the values to display without throwing an exception in the first place. ANY help would be greatly appreciated.

Thanks