ever heard of CODE tags?

here's the answer to you qiuz probably this is failing
Code:
listboxContextMenu.Items.Add(string.Format("Edit - {0}", listBox1.SelectedItem.ToString()));
because the SelectedItem is null and what is null cannot be converted to string, nothing cannot be turned into something