ListBox problem

0

Witam podczas dodawania danych do listboxa wywala error

while (Result->Read()) 
{
       this->listBox1->Items->AddRange(Result->GetString("pole1"));
} 
error C2227: left of '->Items' must point to class/struct/union/generic type
error C2227: left of '->AddRange' must point to class/struct/union/generic type
 

w czym problem co robię źle?

0

this->listBox1->Items->Add(...);

0

to samo

0

Może ListBox1 ?

1 użytkowników online, w tym zalogowanych: 0, gości: 1