Solved

how to set priority of application in vb.net

Posted on 2009-07-08
6
559 Views
Last Modified: 2012-05-07
i want to set the priority of my application to high using .net
0
Comment
Question by:mrpatil
6 Comments
 
LVL 21

Expert Comment

by:Tapan Pattanaik
ID: 24810956
hi patil,

            Can you explain more? which type of priority?
0
 

Author Comment

by:mrpatil
ID: 24812641
cpu priority due to which my application run faster than other running process
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 24831317
You can use the following statement to set the priority of your application to high


System.Diagnostics.Process.GetCurrentProcess().PriorityClass =
System.Diagnostics.ProcessPriorityClass.High;

Open in new window

0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question