Checking for a Previous Instance : Process « Windows System « VB.Net

Home
VB.Net
1.2D
2.Application
3.Class
4.Data Structure
5.Data Types
6.Database ADO.net
7.Development
8.Event
9.File Directory
10.Generics
11.GUI
12.Language Basics
13.LINQ
14.Network Remote
15.Security
16.Thread
17.Windows Presentation Foundation
18.Windows System
19.XML
20.XML LINQ
VB.Net Tutorial
VB.Net by API
VB.Net » Windows System » ProcessScreenshots 
Checking for a Previous Instance
    

Module MainModule
    Public Function PrevInstance() As Boolean
        If UBound(Diagnostics.Process.GetProcessesByName(Diagnostics.Process.GetCurrentProcess.ProcessName)) Then
            Return True
        Else
            Return False
        End If
    End Function

End Module

   
    
    
    
  
Related examples in the same category
1.Check Existing Duplicate Process
2.Get current Running ProcessGet current Running Process
3.Use Process to Start IExplore.exe
4.Start a Process
5.Get Previous Instances
6.Get the current process.
7.Get all instances of Notepad running on the local computer
8.Get all instances of Notepad running on the specifiec computer
9.Using an IP address to specify the machineName parameter
10.Get all processes running on the local computer
11.Get all processes running on the remote computer
12.Get a process on the local computer, using the process id
13.Get a process on a remote computer, using the process id
14.Process with arguments
15.Uses the ProcessStartInfo class to start new processes, both in a minimized mode.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.