so at line 8 you're expecting the code to enter into the error message code block if they right click on no name? Have you set a break point at this line and tested to see what value myListView.SelectedItems(itemIndex).Text contains when you perform this action?