كيف أفتح الملف يا أخوان
عن طريق النقر فوق الملف المطلوب
علماً أني أستخدمت الكود الآتي
Private Sub Command1_Click()
Dim filename As String
'On Error GoTo fileError
If (Right$(Dir1.Path, 1) = "\") Then
filename = File1.Path & File1.filename
Else
filename = File1.Path & "\" & File1.filename
End If
Open filename For Input As #1
'Text1.Text = Input$(LOF(1), #1)
Close #1
Exit Sub
'fileError:
'MsgBox " File Error "
End Sub
Private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub
Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub
Private Sub File1_Click()
Command1_Click
End Sub
