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
minaaj
NA
9
33.5k
help with doing something only when the property matches a certain string
Nov 18 2010 4:42 AM
Hi All,
With the following code I write running processes to a listbox:
------------------------------------------------------------
Process[] procs;
private void Getprocs()
{
procs = Process.GetProcesses();
if (Convert.ToInt32(label2.Text) != procs.Length)
{
listBox1.Items.Clear();
for (int i = 0; i < procs.Length; i++)
{
listBox1.Items.Add(procs[i].MainWindowTitle);
}
label2.Text = procs.Length.ToString();
}
}
---------------------------------------------------------
The problem is the I ONLY want to write those processes to the list where the Process.MainWindowTitle property does not match "nothing".
To find this out i use: (procs[i].MainWindowTitle != "")
How can I incoporate this check with my code ?
Thanks !
Reply
Answers (
3
)
how to create a setup in vb.net ? ?
WCF - Basic example