I need to know how this is done in
vb.net,thanks
On Error Resume Next
Dim f As Integer
f = FreeFile
Open App.Path & "\Errors.log" For Append As #f
Print #f, Format(Now, "mm/dd/yyyy") & " " & Format(Now, "hh:nn:ss") & " - "; p_sError
Close #f
If p_bDisplay Then
MsgBox p_sError, vbCritical + vbApplicationModal
Else
End If