TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
sangmesh sangulage
NA
49
0
check the error not going inside foreach loop
Sep 22 2009 8:29 AM
Here i have put the code whats the problem in that code it is not going inside foreach loop
int
tempValue = 0;
string
f_SearchQuery =
"Select * from Win32_NTLogEvent Where Logfile = 'Application' and EventCode = '10'"
;
ManagementObjectSearcher
f_SearchPrintJobs =
new
ManagementObjectSearcher
(f_SearchQuery);
ManagementObjectCollection
f_PrntJobCollection = f_SearchPrintJobs.Get();
foreach
(
ManagementObject
f_PrntJob
in
f_PrntJobCollection)
{
String
m_JobID = f_PrntJob.Properties[
"Logfile"
].Value.ToString();
MessageBox
.Show(m_JobID);
// //WriteToFile(m_TotalPages, m_JobID);
// }
// Timer1.Start();
}
MessageBox
.Show(tempValue.ToString());
Reply
Answers (
2
)
How can I temporarily disable a web browser?
save records in dataGridView without doing tabout