tags:

views:

17

answers:

1

There have an error

"Object Reference not set to an instance of an object"

when using objusername.intuserid=listbox1.selecteditem.value.

+1  A: 

Check if listbox1.SelectedItem is null, or listbox1.SelectedIndex = -1 before accessing the property. This basically means nothing is selected.

Codesleuth