This is driving me crazy. I have a listview control on form in VC# 2008 Express.
There are three colums set in its properties and its in details mode. I'm trying to add rows of data in at run time but any time I try and access the list Items (either to Add or Clear) I'm told that I have a NullReferenceException and that "Object reference not set to an instance of an object."

What am I doing wrong?

Code:
ListViewItem item = new ListViewItem("NewItem");
item.SubItems.AddRange( new string[] { "SubItem1", "SubItem2" });

lvProcesses.Items.Add("item");