in resources there is a text file with items like
number 1
2
number 3 three

when i use code

For Each i As String In My.Resources.TextFile1

            If i.ToString().Trim.Length = 0 Then

                ListBox1.Items.Remove(i.ToString())

            Else

                ListBox1.Items.Add(i.ToString())

            End If



        Next

then in listbox1 its looks like this
http://myup.ir/images/61057050895672070364.jpg

n
u
m
b
e
r
1
i want listbox1 read items from text file witch in resources and show some thing like this
number 1
2
number 3 three

Try

For Each i As String In My.Resources.TextFile1.Split(vbCrLf)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.