Click here to Skip to main content
15,887,361 members
Home / Discussions / C#
   

C#

 
GeneralRe: Winforms and SQL Threading Problem Pin
Luc Pattyn3-Feb-10 4:29
sitebuilderLuc Pattyn3-Feb-10 4:29 
GeneralRe: Winforms and SQL Threading Problem Pin
Uray Frank3-Feb-10 4:30
Uray Frank3-Feb-10 4:30 
GeneralRe: Winforms and SQL Threading Problem Pin
Luc Pattyn3-Feb-10 4:36
sitebuilderLuc Pattyn3-Feb-10 4:36 
GeneralRe: Winforms and SQL Threading Problem Pin
Uray Frank3-Feb-10 4:45
Uray Frank3-Feb-10 4:45 
GeneralRe: Winforms and SQL Threading Problem Pin
Luc Pattyn3-Feb-10 5:12
sitebuilderLuc Pattyn3-Feb-10 5:12 
QuestionLINQ to parse EventLog Query [modified] Pin
Sunil G3-Feb-10 1:11
Sunil G3-Feb-10 1:11 
AnswerRe: LINQ to parse EventLog Query Pin
Ravi Bhavnani3-Feb-10 2:01
professionalRavi Bhavnani3-Feb-10 2:01 
AnswerRe: LINQ to parse EventLog Query Pin
Pete O'Hanlon3-Feb-10 2:14
mvePete O'Hanlon3-Feb-10 2:14 
Bear in mind that the event log entries are just a collection, you can retrieve items from it using something like the following:
var item = from EventLogEntry p in EventLog.GetEventLogs().First().Entries
           where p.Message.Contains("Online")
           select new { Id = p.InstanceId, Message = p.Message };
In this sample, I'm just picking from the first event log - you would probably want to refine this to find the log you are interested in explicitly. The Contains method is the closest you'll get to the Like operator.

"WPF has many lovers. It's a veritable porn star!" - Josh Smith

As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.


My blog | My articles | MoXAML PowerToys | Onyx



AnswerRe: LINQ to parse EventLog Query Pin
Palash Biswas3-Feb-10 3:17
Palash Biswas3-Feb-10 3:17 
Questionmulticolumn listview Pin
Member 5903103-Feb-10 0:41
Member 5903103-Feb-10 0:41 
AnswerRe: multicolumn listview Pin
sanforjackass3-Feb-10 0:57
sanforjackass3-Feb-10 0:57 
AnswerRe: multicolumn listview Pin
OriginalGriff3-Feb-10 1:01
mveOriginalGriff3-Feb-10 1:01 
AnswerRe: multicolumn listview Pin
Ramkithepower3-Feb-10 1:22
Ramkithepower3-Feb-10 1:22 
QuestionFluentNHibernate mapping - No Persister for... Please help. Pin
Yoken3-Feb-10 0:04
Yoken3-Feb-10 0:04 
AnswerRe: FluentNHibernate mapping - No Persister for... Please help. Pin
Yoken3-Feb-10 21:07
Yoken3-Feb-10 21:07 
QuestionWork with MS office, PDF, files Pin
Hum Dum2-Feb-10 23:57
Hum Dum2-Feb-10 23:57 
Questionencryption & decryption Pin
3bood.ghzawi2-Feb-10 23:20
3bood.ghzawi2-Feb-10 23:20 
Questionapplication which allow multiple user to work on same file Pin
Sachin Pimpale2-Feb-10 23:03
Sachin Pimpale2-Feb-10 23:03 
AnswerRe: application which allow multiple user to work on same file Pin
Dan Mos2-Feb-10 23:24
Dan Mos2-Feb-10 23:24 
AnswerRe: application which allow multiple user to work on same file Pin
sanforjackass2-Feb-10 23:40
sanforjackass2-Feb-10 23:40 
QuestionInsert New Item to Combobox after Data Binding Pin
pavanig92-Feb-10 22:53
pavanig92-Feb-10 22:53 
AnswerRe: Insert New Item to Combobox after Data Binding Pin
Dan Mos2-Feb-10 23:09
Dan Mos2-Feb-10 23:09 
GeneralI want to write a simple C# compiler Pin
Fired.Fish.Gmail2-Feb-10 21:52
Fired.Fish.Gmail2-Feb-10 21:52 
AnswerRe: I want to write a simple C# compiler Pin
Nuri Ismail2-Feb-10 22:07
Nuri Ismail2-Feb-10 22:07 
GeneralRe: I want to write a simple C# compiler Pin
Fired.Fish.Gmail3-Feb-10 0:50
Fired.Fish.Gmail3-Feb-10 0:50 

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.