ppj 0 Report post Posted March 6, 2005 ok i have a pice of code that loads an IP and a discription to a list box from a text file and nomaly it should load the full ip (like 23.435.12.34) but instead it will load 23.435 can anyone help here the code Code: Private Sub Form_Load() Open App.Path & "\config.txt" For Input As #1 Dim stra As String Input #1, stra txtPath.Text = stra Dim fora As Integer Input #1, DICount If DICount = 1 Then Input #1, IPs(1) Input #1, Descs(1) lstServer.AddItem IPs(1) & " -" & Descs(1) & "-" Else For fora = 1 To DICount Input #1, IPs(fora) Input #1, Descs(fora) lstServer.AddItem IPs(fora) & " -" & Descs(fora) & "-" Next fora End If Close #1 'DICount = 0 End Sub Share this post Link to post Share on other sites
Raptrex 0 Report post Posted March 6, 2005 make the list box wider Share this post Link to post Share on other sites