So far I have managed to get this far on my double click event and have the message box showing accurately except I get a overload error when trying to add exclamation icon, But my main issue is how to code to get the selected list box item to delete when clicking ok button from message box?
private void statesListBox_MouseDoubleClick(object sender, MouseEventArgs e)
{
//Select a state to remove from list box
if (statesListBox.SelectedItem != null)
if (statesListBox.SelectedItem.ToString().Length != 0)
MessageBox.Show("Delete" + " " + (statesListBox.SelectedItem.ToString())
+ " " + "Are you sure?", "Delete" + " " +
(statesListBox.SelectedItem.ToString()));
if (MessageBoxResult.OK)
}