Trivial ListBox issue..

Dracarnion

Member
Joined
Apr 10, 2007
Messages
11
Programming Experience
5-10
Hello -

I'm writing an application that uses a listbox to store notes that i create.
(I have an ArrayList which takes "Note" objects)

I'm using this ArrayList as my data source for the list box and I have confirmed that my "Note" objects are being added to my ArrayList and the ArrayList is successfully being assigned to the datasource of the ListBox, but nothing shows up in the list.

Here is my Form_Load:

Me.lstNotes.DataSource = CType(work.GetNoteList, ArrayList)
Me.lstNotes.DisplayMember = "title"


When this form gets activated (after a note is added), I re-assign the datasource to new ArrayList:

Me.lstNotes.DataSource = work.GetNoteList


If anyone has any suggestions I would greatly appreciate it!

Thanks in advance
 
Back
Top