Click here to Skip to main content
16,006,501 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generaladding new form Pin
Anonymous15-Jul-05 23:26
Anonymous15-Jul-05 23:26 
GeneralRe: adding new form Pin
[Marc]16-Jul-05 8:52
[Marc]16-Jul-05 8:52 
GeneralRe: adding new form Pin
Anonymous16-Jul-05 11:02
Anonymous16-Jul-05 11:02 
GeneralRe: adding new form Pin
[Marc]16-Jul-05 15:48
[Marc]16-Jul-05 15:48 
GeneralFolder Treeview with checkboxes (VB6) Pin
xer131415-Jul-05 22:30
xer131415-Jul-05 22:30 
Generalsqlce connection help Pin
Member 190267915-Jul-05 22:00
Member 190267915-Jul-05 22:00 
GeneralVb+scanned image reading Pin
royrana15-Jul-05 22:00
royrana15-Jul-05 22:00 
GeneralLog File Question Pin
LordLothar15-Jul-05 20:30
LordLothar15-Jul-05 20:30 
Im a beginner in VB.net. Im was about to create a text log file to record my application activity such as the user update or delete something then such activity will be recorded in text file. I have this code from code project last time:

Private Shared Sub WriteToAppLog( _<br />
ByVal message As String _<br />
, ByVal messageType As EventLogEntryType _<br />
)<br />
Dim elLog As System.Diagnostics.EventLog<br />
Try<br />
elLog = New System.Diagnostics.EventLog( _<br />
"Application" _<br />
, Environment.MachineName _<br />
, Application.ProductName _<br />
)<br />
elLog.WriteEntry(message, messageType)<br />
Catch ex As Exception<br />
'Your error handling here<br />
End Try<br />
End Sub


But im not really understand how to implement it and where i can check the log file from above code? Does it appear to be .txt file? and does above code have to be placed in every form in my vb.net? If u have any other code than above, feel free to tell me.

Please help me, this is my last step of my project.
Thanks.
Generalcode net send Pin
Member 199098515-Jul-05 15:56
Member 199098515-Jul-05 15:56 
GeneralWindows Authentication IIS Pin
Harmonium15-Jul-05 9:12
Harmonium15-Jul-05 9:12 
GeneralWaiting on process to finish Pin
phraser15-Jul-05 9:11
phraser15-Jul-05 9:11 
GeneralRe: Waiting on process to finish Pin
Dave Kreskowiak15-Jul-05 9:30
mveDave Kreskowiak15-Jul-05 9:30 
GeneralRe: Waiting on process to finish Pin
phraser15-Jul-05 9:34
phraser15-Jul-05 9:34 
GeneralRe: Waiting on process to finish Pin
rwestgraham15-Jul-05 10:45
rwestgraham15-Jul-05 10:45 
GeneralRe: Waiting on process to finish Pin
Dave Kreskowiak15-Jul-05 11:24
mveDave Kreskowiak15-Jul-05 11:24 
GeneralRe: Waiting on process to finish Pin
phraser15-Jul-05 11:40
phraser15-Jul-05 11:40 
GeneralRe: Waiting on process to finish Pin
Dave Kreskowiak15-Jul-05 11:48
mveDave Kreskowiak15-Jul-05 11:48 
GeneralRe: Waiting on process to finish Pin
phraser15-Jul-05 11:50
phraser15-Jul-05 11:50 
GeneralRe: Waiting on process to finish Pin
Dave Kreskowiak15-Jul-05 16:58
mveDave Kreskowiak15-Jul-05 16:58 
GeneralRe: Waiting on process to finish Pin
phraser16-Jul-05 2:28
phraser16-Jul-05 2:28 
GeneralRe: Waiting on process to finish Pin
Dave Kreskowiak16-Jul-05 6:40
mveDave Kreskowiak16-Jul-05 6:40 
GeneralRe: Waiting on process to finish Pin
phraser16-Jul-05 7:58
phraser16-Jul-05 7:58 
GeneralResizing button controls Pin
Member 1325918815-Jul-05 7:21
Member 1325918815-Jul-05 7:21 
GeneralRe: Resizing button controls Pin
bneacetp16-Jul-05 15:34
bneacetp16-Jul-05 15:34 
GeneralBetween Syntax Pin
Capilano15-Jul-05 6:49
Capilano15-Jul-05 6:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.