im trying to determine if there is an item selected on the listview..
i have a listview that displays customers name with a .tag that holds there ID.
how do you tell if the tag is 0 or empty before executing code?
in vb6 i simply did
if .lstwhatever.selecteditem is nothing then exit sub
in vb.net ive tried multiple things
if .lstwhatever.selecteditems.item(0) is nothing then exit sub if .lstwhatever.selecteditems is nothing then exit sub if .lstwhatever.selecteditems.item(0).tag = 0 then exit sub the code i want to execute if there is a tag (or atleast a listitem is selected) is down here.
anyone have any ideas.