• Register now to get access to thousands of Tutorials, Leaked content, Hot NSFW and much more. Join us as we build and grow the community.

Advertise Here

Advertise Here

Advertise Here

Show Running Applications in VB.NET

TheLegend27

Quantum Network Specialist
T Rep
0
0
0
Rep
0
T Vouches
0
0
0
Vouches
0
Posts
164
Likes
177
Bits
2 MONTHS
2 2 MONTHS OF SERVICE
LEVEL 1 300 XP
For the past months, I already made a tutorial regarding on showing all the process of computer with this link http://www.sourcecodester.com/tutorials/visual-basic-net/6763/show-lists-computer-process-vbnet.html. Now, in this tutorial, i will create a program that all your opened computer applications will be displayed.

Now, let's start this tutorial!

1. Let's start with creating a Windows Form Application for this tutorial by following the following steps in Microsoft Visual Studio: Go to File, click New Project, and choose Windows Application.

2. Next, add only one ListView in your Form named applist that has two columns labeled Task and Status.
You must design your layout like this:

runningappdes.png


3. Now, we will code for our program.

Put this code in your Form_Load:
  1. Private

    Sub

    Form1_Load(

    ByVal

    sender As

    System.

    Object

    , ByVal

    e As

    System.

    EventArgs

    )

    Handles

    MyBase

    .

    Load
  2. applist.

    Items

    .

    Clear

    (

    )
  3. For

    Each

    p In

    Process.

    GetProcesses
  4. If

    p.

    MainWindowTitle

    <>

    ""

    Then
  5. Dim

    app As

    ListViewItem =

    applist.

    Items

    .

    Add

    (

    p.

    MainWindowTitle

    )
  6. app.

    SubItems

    .

    Add

    (

    "running"

    )

  7. End

    If
  8. Next
  9. End

    Sub

First, we will clear the items in the ListView. Then create a For Each loop with a variable named p as a Process. If the process has the main window title then we will show and add the items of the listview and displaying all the applications that are opened. Then on the second column,it will display "running".

Output:

runningapp.png


For more inquiries and need programmer for your thesis systems in any kind of programming languages, just contact my number below.

Best Regards,

Engr. Lyndon Bermoy
IT Instructor/System Developer/Android Developer/Freelance Programmer
Mobile: 09488225971
Landline: 826-9296
E-mail:[email protected]

Add and Follow me on Facebook: https://www.facebook.com/donzzsky

Visit and like my page on Facebook at: https://www.facebook.com/BermzISware


Download
You must upgrade your account or reply in the thread to view the hidden content.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

452,500

350,639

350,649

Top