Results 1 to 2 of 2

Thread: Windows priority

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2003
    Location
    Porto Alegre, RS
    Posts
    210

    Windows priority

    How can i set the priority of my application?

    It should be the high priority on windows, not as high as windows it self, but just below!!

    Thank you,
    Guilherme Costa

  2. #2
    Frenzied Member maged's Avatar
    Join Date
    Nov 2002
    Location
    Egypt
    Posts
    1,040

    Re: Windows priority

    try this

    VB Code:
    1. Dim p As Process() = Process.GetProcessesByName("xxx")  'xxx is your application exe filename without the ".exe" just the name itself
    2. p(0).PriorityClass = ProcessPriorityClass.High

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width