Hi... I am getting the following error:
I am trying to copy a listview collection to an array. I want the array to be string but then I get another error if I try to copy listview.items to a string arrayAn unhandled exception of type 'System.NullReferenceException' occurred in system.windows.forms.dll
Additional information: Object reference not set to an instance of an object.
Code:Dim sourceArray() As Object frm1.lstRight.Items.CopyTo(sourceArray, 0)




Reply With Quote