DPrometheus
Regular
Heyey
I've placed a combobox on a form called SourceCBox
in the load event on this form I placed the following code:
where filename and name correspond to the properties of the Sprite object
however if I add sprites to the _image collection, the combobox never updates.
If I put a breakpoint on the DropDown event I can see in my watch that the DataSource recognizes the newly added sprite and thus corresponds with the right collection. However no items are displayed in the dropdown 'panel' of the combobox.
Anyone has a clue what I'm missing here?
~DP
I've placed a combobox on a form called SourceCBox
in the load event on this form I placed the following code:
Code:
_images = New List(Of Projects.Sprite)
SourceCBox.DataSource = _images
SourceCBox.ValueMember = "Filename"
SourceCBox.DisplayMember = "Name"
Dim img As New Projects.Sprite("TestImage")
img.Filename = "image.png"
_images.Add(_img)
where filename and name correspond to the properties of the Sprite object
however if I add sprites to the _image collection, the combobox never updates.
If I put a breakpoint on the DropDown event I can see in my watch that the DataSource recognizes the newly added sprite and thus corresponds with the right collection. However no items are displayed in the dropdown 'panel' of the combobox.
Anyone has a clue what I'm missing here?
~DP