Click here to Skip to main content
14,976,940 members
Home / Discussions / C#
   

C#

 
QuestionHow to transfer data without using dataset Pin
Ersan Ercek19-Jun-09 1:53
MemberErsan Ercek19-Jun-09 1:53 
AnswerRe: How to transfer data without using dataset Pin
Not Active19-Jun-09 2:10
mentorNot Active19-Jun-09 2:10 
GeneralRe: How to transfer data without using dataset Pin
SilimSayo19-Jun-09 2:16
MemberSilimSayo19-Jun-09 2:16 
GeneralRe: How to transfer data without using dataset Pin
Not Active19-Jun-09 2:35
mentorNot Active19-Jun-09 2:35 
GeneralRe: How to transfer data without using dataset Pin
Ersan Ercek19-Jun-09 4:31
MemberErsan Ercek19-Jun-09 4:31 
GeneralRe: How to transfer data without using dataset Pin
Not Active19-Jun-09 5:06
mentorNot Active19-Jun-09 5:06 
GeneralRe: How to transfer data without using dataset Pin
Ersan Ercek24-Jun-09 5:37
MemberErsan Ercek24-Jun-09 5:37 
QuestionEventLog logging with log4net Pin
Jammer19-Jun-09 1:08
MemberJammer19-Jun-09 1:08 
Hi All,

I've been poking around Google / Apache.org trying to get to the bottom of this with no luck. There isn't a lot of info anywhere on configuring log4net using pure C# so I thought I'd try here now.

I can log to the "Application" log with no problems. I can also create "MyLog" event log without problems as well, however, writing to "MyLog" fails to actually write an event log entry. The code I'm using to configure an EventLogAppener is:

public static void ConfigureEventLogAppender(string appName, string logName)
{
PatternLayout layout = GetDefaultLayout();
_eventLogAppender = new EventLogAppender();
_eventLogAppender.ApplicationName = appName;
_eventLogAppender.Layout = layout;
_eventLogAppender.LogName = logName;
_eventLogAppender.Threshold = Level.All;
_eventLogAppender.ActivateOptions();

BasicConfigurator.Configure(_eventLogAppender);
}

Has anyone managed to get this working?

Cheers,


QuestionCheck system date when form load Pin
KIDYA19-Jun-09 1:03
MemberKIDYA19-Jun-09 1:03 
AnswerRe: Check system date when form load Pin
Manas Bhardwaj19-Jun-09 1:10
professionalManas Bhardwaj19-Jun-09 1:10 
AnswerRe: Check system date when form load Pin
lw@zi 19-Jun-09 1:14
professional lw@zi 19-Jun-09 1:14 
JokeRe: Check system date when form load Pin
Eddy Vluggen19-Jun-09 1:19
professionalEddy Vluggen19-Jun-09 1:19 
GeneralRe: Check system date when form load Pin
lw@zi 19-Jun-09 1:28
professional lw@zi 19-Jun-09 1:28 
GeneralRe: Check system date when form load Pin
KIDYA19-Jun-09 1:39
MemberKIDYA19-Jun-09 1:39 
GeneralRe: Check system date when form load Pin
harold aptroot19-Jun-09 2:45
Memberharold aptroot19-Jun-09 2:45 
GeneralRe: Check system date when form load Pin
PIEBALDconsult19-Jun-09 6:58
professionalPIEBALDconsult19-Jun-09 6:58 
GeneralRe: Check system date when form load Pin
harold aptroot19-Jun-09 1:31
Memberharold aptroot19-Jun-09 1:31 
QuestionDatagridview shows same record again Pin
KIDYA18-Jun-09 23:48
MemberKIDYA18-Jun-09 23:48 
AnswerRe: Datagridview shows same record again Pin
Christian Graus18-Jun-09 23:50
protectorChristian Graus18-Jun-09 23:50 
AnswerRe: Datagridview shows same record again Pin
padmanabhan N19-Jun-09 0:46
Memberpadmanabhan N19-Jun-09 0:46 
AnswerRe: Datagridview shows same record again Pin
CrazyCoder2619-Jun-09 2:14
MemberCrazyCoder2619-Jun-09 2:14 
QuestionSet Control Values on Form from other class Pin
Programm3r18-Jun-09 23:46
MemberProgramm3r18-Jun-09 23:46 
AnswerRe: Set Control Values on Form from other class Pin
Christian Graus18-Jun-09 23:49
protectorChristian Graus18-Jun-09 23:49 
GeneralRe: Set Control Values on Form from other class Pin
lw@zi 18-Jun-09 23:57
professional lw@zi 18-Jun-09 23:57 
GeneralRe: Set Control Values on Form from other class Pin
Christian Graus18-Jun-09 23:59
protectorChristian Graus18-Jun-09 23:59 

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.