for (k = 0; k < PrimeSize; k++)
{
Item = gcnew ListViewItem(k.ToString());
Item->SubItems->Add(HTPtr->TableArray[k].ToString());
Item->SubItems->Add(HTPtr->OrderArray[k].ToString());
Item->SubItems->Add(Title);
//This is the button I want to add I keep getting an error saying "listviewitems" has no member
Item->SubItems->Controls->Add(this->btnSelect);
HashTableListView->Items->Add(Item);
}
Item->Subitems is a ListViewSubItemCollection Class and you can add only String or ListviewItems to it.
To add a Button you need to set the Button->Parent to the Listview and find the right position for it it. Here's a example in C# maybe you can adopt it. https://www.codeproject.com/Articles/9188/Embedding-Controls-in-a-ListView