15-08-19, 11:36 PM
(آخر تعديل لهذه المشاركة : 15-08-19, 11:38 PM {2} بواسطة mohamedahmed1.)
اخي هل قصدك انك تريد عرض ما داخل ملف ال Text في الليست بوكس ؟
اذا كان هذا قصدك تفضل الكود
اذا كان هذا قصدك تفضل الكود
كود :
On Error Resume Next
Dim openfile As New OpenFileDialog
ListBox1.Items.Clear()
openfile.Title = "Text |*.txt"
openfile.ShowDialog()
Dim txtline() As String = IO.File.ReadAllLines(openfile.FileName)
ListBox1.Items.AddRange(txtline)![[صورة مرفقة: p_1583w56341.gif]](https://l.top4top.io/p_1583w56341.gif)
