11-10-13, 11:02 PM
جميل جدا انا عدلت الكود فعلا قبل الرد ولكن هناك شيء لو هتعبك معايا
اولا نقلت بعد النقل
والاكود بحدث الزر
اضع بعد الحدث كود لمسح الملف
Using W As IO.StreamWriter = IO.File.CreateText("المسار")
W.Write("UserName" & vbNewLine & "PassWord")
W.Close()
If File.Exists("C:\Users\Desktop\good\tested.txt") = True Then
File.Delete("C:\UsersDesktop\good\tested.txt") : MsgBox(" delleting")
End If
ولكن حدث شيء غريب خطا مكرر
The process cannot access the file 'C:\Users\OPEN-GAME\Desktop\good\tested.txt' because it is being used by another process.
انا نهيت الحدث
w.dispose
اولا نقلت بعد النقل
والاكود بحدث الزر
اضع بعد الحدث كود لمسح الملف
Using W As IO.StreamWriter = IO.File.CreateText("المسار")
W.Write("UserName" & vbNewLine & "PassWord")
W.Close()
If File.Exists("C:\Users\Desktop\good\tested.txt") = True Then
File.Delete("C:\UsersDesktop\good\tested.txt") : MsgBox(" delleting")
End If
ولكن حدث شيء غريب خطا مكرر
The process cannot access the file 'C:\Users\OPEN-GAME\Desktop\good\tested.txt' because it is being used by another process.
انا نهيت الحدث
w.dispose
