///////This example for Delete/Insert / read and count And Create //But you dont need to create list becuase you have control in your form CListBox m_List2; m_List2.Create(WS_CHILD|WS_VISIBLE,CRect(0,0,100,100),this,1); m_List2.AddString("1"); m_List2.AddString("2"); m_List2.AddString("3"); m_List2.AddString("4"); //For Delete from ListBox m_List2.DeleteString(0);//Delete 1//m_List2.GetCurSel() //////For GetItems CString Str,temp,Str2,Str3; CStringArray m_String; for(int i = 0;i< m_List2.GetCount();i++) { m_List2.GetText( i, temp); Str.Insert(0,"\\"+temp);//insert in location 0 Str3.Insert(Str3.GetLength(),"\\"+temp);//insert in location end Str2=Str2+"\\"+temp;//insert 1\2\3 m_String.Add(temp);//insert to array }