how to clear a listbox control
-
I am using a listbox control to show a report on a record. I can load the listbox the first time but i can not clear it for a second loading. The new data just gets appended to the end of the list. I am using the following to load the listbox nIndex gets reset everytime the listbox is set. m_choslist.InsertString(nIndex,msg);
-
I am using a listbox control to show a report on a record. I can load the listbox the first time but i can not clear it for a second loading. The new data just gets appended to the end of the list. I am using the following to load the listbox nIndex gets reset everytime the listbox is set. m_choslist.InsertString(nIndex,msg);
-
I am using a listbox control to show a report on a record. I can load the listbox the first time but i can not clear it for a second loading. The new data just gets appended to the end of the list. I am using the following to load the listbox nIndex gets reset everytime the listbox is set. m_choslist.InsertString(nIndex,msg);
try yourlist.ResetContent(); :cool: gm