"Terry Olsen" <to******@hotmail.com> schrieb:
I have a listbox that uses an ArrayList for a datasource. When I change
the information in the ArrayList, is there no way to "Refresh" the
listbox other than...?
\\\
Private m_Data As New ArrayList
Private Sub Form1_Load( _
ByVal sender As Object, _
ByVal e As EventArgs _
) Handles MyBase.Load
m_Data.Add("Hello")
Me.ListBox1.DataSource = m_Data
End Sub
Private Sub Button1_Click( _
ByVal sender As Object, _
ByVal e As EventArgs _
) Handles Button1.Click
m_Data.Add("Bla")
DirectCast( _
Me.ListBox1.BindingContext(Me.ListBox1.DataSource) , _
CurrencyManager _
).Refresh()
End Sub
///
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>