Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27333

VS 2010 Auto refresh contents of listbox?

$
0
0
I have the following working code, but I want it to auto-update after another entry has been written to "mytextfile.txt"

Code:

    Private Sub Info_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'Populate ListBox.
        Dim my_list() As String = File.ReadAllLines("mytextfile.txt")
        lstTextEntry.Items.AddRange(my_list)
    End Sub

I am stumped on this one. Anyone?

Viewing all articles
Browse latest Browse all 27333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>