I created a ListView in VB2010 Express. I have four buttons on Form1 to add an item, delete an item, edit an item and print the list. Before I can edit or delete an item, the item must first be selected. If I forget to first select and item before clicking either the edit or delete button, I get an error message.
What code do I need to add so that when I forget to select before clicking the edit or delete button a message box will remind to first select. I added the message box but after clicking OK on the message box, the code continues and I still get the error message. I need something to pause the code long enough for me to select the item and re-click.
Thank you very much.
RoyBonBon