I have little problem with show string in MessageBox. I load date from database into ListBox.
Now I want show selecteditem. I have something like this:
StringBuilder message = new StringBuilder();
foreach (var selectedItem in CategorylistBox.SelectedValue.ToString())
{
message.AppendLine(selectedItem.ToString());
}
MessageBox.Show(message.ToString());
I select "Sci-Fi" movie category, but I get:
Can someone help me and tell how to display it in one line?