如果你平時有許多同學和朋友的信息
先新建一個工程
添加一個文本框(text
添加一個Listview控件(Listview
添加兩個按鈕
Option Explicit
Dim fileName As String
Private Sub Command
Dim i As Integer
With ListView
For i =
Next i
End With
End Sub
Private Sub Command
If ListView
If MsgBox(
ListView
End If
End If
End Sub
Private Sub Form_Load()
Dim tpStr As String
fileName = App
If Dir(fileName) <>
Open fileName For Input As #
Do While Not EOF(
With ListView
For i =
Line Input #
If i =
Else
End If
Next i
End With
Loop
Close #
End If
End Sub
Private Sub Form_Unload(Cancel As Integer)
Dim i As Integer
Dim tpList As ListItem
Open fileName For Output As #
For Each tpList In ListView
Print #
For i =
Print #
Next i
Next tpList
Close #
End Sub
本程序已在windows
From:http://tw.wingwit.com/Article/program/net/201311/11502.html