Home > Net >  Will the textual information in the TXT present in dataGridView, the most handsome bosses to solve
Will the textual information in the TXT present in dataGridView, the most handsome bosses to solve

Time:09-22

As shown in the figure below, I think will be the textual information in the TXT present in dataGridView, but now can only read two lines [and] that accords with a requirement, but it can't be read the following content, shows that beyond the index, solution,

CodePudding user response:

I will only Vb.net, you turn to
Public class info
Public property user as string
Public property password as string
The end of the class
Private Sub readfromtext (TXT as string)
Dim infos as new list (of the info)
Dim sinfo as new info
Dim txtlist=TXT. Split (controlchars. CTRLFT)
For each t in txtlist
Sinfo=new info
Sinfo. User=t.s plit (', ') (0)
Sinfo. Password=t.s plit (', ') (1)
Infos. Add (sinfo)
Next
Datagridview. The datasource=infos
End Sub
Pure hand
  • Related