C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !






Process List Control


Posted Date: 02 Aug 2008    Resource Type: Code Snippets    Category: Winforms Controls
Author: InitiotechMember Level: Gold    
Rating: Points: 7



This Control Gets The Current Running Processes on your computer

This code is Written in VB.net


A)This Code sample is used to get all process running currently at regular intervals. This example runs from a Timer Tick Event


Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
ListView1.Items.Clear()
For Each p As Process In Process.GetProcesses()
ListView1.Items.Add(p.ProcessName)
Next
End Sub



B)Create Properties where user can set whether or not to refresh processes at intervals


Public Property SetRefresh() As Boolean
Get
Return Timer1.Enabled
End Get
Set(ByVal Value As Boolean)
Timer1.Enabled = Value
End Set
End Property

Public Property SetRefreshInterval() As Integer
Get
Return Timer1.Interval
End Get
Set(ByVal Value As Integer)
Timer1.Interval = Value
End Set
End Property



Use this Control in any of your winforms application


Download the Source Code for full Code with implementation Sample.

HEFIN DSOUZA


Attachments

  • Download Source Code (20019-21027-processLister.rar)



  • Responses


    No responses found. Be the first to respond and make money from revenue sharing program.

    Feedbacks      
    Popular Tags   What are tags ?   Search Tags  
    Process List  .  List running processes  .  List currently running processes  .  List all processes  .  Custom Control  .  

    Post Feedback


    This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
    You must Sign In to post a response.
    Next Resource: Custom OnFocus Textbox Control
    Previous Resource: Trasferring Values From One Form to another
    Return to Discussion Resource Index
    Post New Resource
    Category: Winforms Controls


    Post resources and earn money!
     
    Related Resources



    dotNet Slackers   BizTalk Adaptors    Web Design


    Contact Us    Privacy Policy    Terms Of Use