åªæ¯è¦æå¼ä¿åç代ç æ¯å§ï¼ææ¬ä¿¡æ¯åå¨text1éï¼command1æ¯æå¼æé®ï¼command2æ¯ä¿åæé®ï¼èªå·±æ·»å 个common dialogæ§ä»¶ï¼ä»£ç å¦ä¸ï¼Private Sub Command1_Click()
Dim a As String
cd1.CancelError = True
On Error GoTo abc
cd1.ShowOpen
Open cd1.FileName For Input As #1
Do While Not EOF(1)
Line Input #1, a
Text1.Text = a
Loop
Close #1
abc:
End Sub Private Sub Command2_Click()
cd1.CancelError = True
On Error GoTo abc
cd1.ShowSave
Open cd1.FileName For Output As #1
Print #1, Text1.Text
Close #1
abc:
End Sub
温馨提示:答案为网友推荐,仅供参考