How do you add a std::string variable to a ListBox?

  add, c++, c++-cli, listbox, winforms
std::string texxt = "azerty";
lsbKruiden->Items->Add(texxt); //"Add" is underlinde as error, the "string" has to be a "System::Object ^Item".

Source: Windows Questions C++

LEAVE A COMMENT