Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27514

VS 2008 get new process and execute action to it

$
0
0
What i would like to do is:

1.the user will load a file with some strings in a listview with 3 columns

2.a timer will run and see if a new process that is not in the listview is opened(i want to get the mainmodule.filename of the process and compare it to ListView1.Items.Item(index).SubItems(2).Text (which is the third column)

3.if it is not in the list then form2.show else if it is in the list check to see what column 2 say about it .subitems(1).text
at nr 3 i thought of something like this in case it's not detected in the list
Code:

Dim Frm as new Form2
Frm.text = process.processname
Frm.tag = process.mainmodule.filename
Frm.Show

and cause of this i don't want to be spammed by forms with the same process, so make something that will ignore that item,but not stop the timer in case new processes start

So i need help at point 2 and 3

Viewing all articles
Browse latest Browse all 27514

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>