Solved

how to set priority of application in vb.net

Posted on 2009-07-08
6
564 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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

Suggested Solutions

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

856 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