Click here to Skip to main content
15,892,575 members
Home / Discussions / C#
   

C#

 
GeneralRe: adding \n to a string Pin
ednrgc27-Nov-06 8:25
ednrgc27-Nov-06 8:25 
GeneralRe: adding \n to a string Pin
karam chandrabose27-Nov-06 9:35
karam chandrabose27-Nov-06 9:35 
QuestionRe: adding \n to a string Pin
Martin#27-Nov-06 20:23
Martin#27-Nov-06 20:23 
AnswerRe: adding \n to a string Pin
Stefan Troschuetz27-Nov-06 22:07
Stefan Troschuetz27-Nov-06 22:07 
GeneralRe: adding \n to a string Pin
Martin#27-Nov-06 22:23
Martin#27-Nov-06 22:23 
QuestionOnScreenKeyboard Pin
Dobromir Dimitrov27-Nov-06 4:07
Dobromir Dimitrov27-Nov-06 4:07 
QuestionEventLog .Evt file? Pin
RadioButton27-Nov-06 4:04
RadioButton27-Nov-06 4:04 
AnswerRe: EventLog .Evt file? Pin
Eric Dahlvang27-Nov-06 8:53
Eric Dahlvang27-Nov-06 8:53 
I don't know about using Installutil.exe to install an event log, but I do know that when you create an Event Source using EventLog.CreateEventSource(), the event log will be created automatically if it doesn't exist already.
if (!EventLog.SourceExists("SourceName"))
   EventLog.CreateEventSource("SourceName", "LogName");

will create an event log for you named LogName.evt (it will be in the \System32\config directory) with a Source of SourceName.

To write to it:
EventLog myLog = new EventLog("LogName",".","SourceName");
myLog.WriteEntry("Loggin my event...");


Documentation:
EventLog.CreateEventSource Method (String, String) [^]
This method can also create a new custom log on the local computer.

--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters

GeneralRe: EventLog .Evt file? Pin
RadioButton27-Nov-06 10:55
RadioButton27-Nov-06 10:55 
QuestionBug in VS2005 ? Pin
stancrm27-Nov-06 3:50
stancrm27-Nov-06 3:50 
AnswerRe: Bug in VS2005 ? Pin
Alexandru Ghiondea27-Nov-06 4:51
Alexandru Ghiondea27-Nov-06 4:51 
GeneralRe: Bug in VS2005 ? Pin
ednrgc27-Nov-06 8:26
ednrgc27-Nov-06 8:26 
Questionhelp Pin
amirafouad2127-Nov-06 3:49
amirafouad2127-Nov-06 3:49 
AnswerRe: help Pin
leckey27-Nov-06 3:57
leckey27-Nov-06 3:57 
GeneralRe: help Pin
Paul Conrad27-Nov-06 8:08
professionalPaul Conrad27-Nov-06 8:08 
GeneralRe: help Pin
ednrgc27-Nov-06 8:29
ednrgc27-Nov-06 8:29 
GeneralRe: help Pin
amirafouad2127-Nov-06 10:05
amirafouad2127-Nov-06 10:05 
QuestionReplacing system tray clock Pin
Vandra Akos27-Nov-06 3:25
Vandra Akos27-Nov-06 3:25 
AnswerRe: Replacing system tray clock Pin
Dave Kreskowiak27-Nov-06 6:20
mveDave Kreskowiak27-Nov-06 6:20 
GeneralRe: Replacing system tray clock Pin
Vandra Akos27-Nov-06 6:49
Vandra Akos27-Nov-06 6:49 
GeneralRe: Replacing system tray clock Pin
Dave Kreskowiak27-Nov-06 7:20
mveDave Kreskowiak27-Nov-06 7:20 
QuestionRe: Replacing system tray clock Pin
Vandra Akos28-Nov-06 2:08
Vandra Akos28-Nov-06 2:08 
AnswerRe: Replacing system tray clock Pin
Dave Kreskowiak28-Nov-06 3:05
mveDave Kreskowiak28-Nov-06 3:05 
AnswerRe: Replacing system tray clock Pin
Luc Pattyn27-Nov-06 8:19
sitebuilderLuc Pattyn27-Nov-06 8:19 
GeneralRe: Replacing system tray clock Pin
axos8829-Nov-06 2:03
axos8829-Nov-06 2:03 

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.