Click here to Skip to main content
15,896,063 members
Home / Discussions / C#
   

C#

 
GeneralRe: Totally Beginner Question.. Updating SQL Server DB. Pin
HopefulCoder31-Mar-06 9:21
HopefulCoder31-Mar-06 9:21 
QuestionHow to register C# COM class? Pin
CherezZaboro31-Mar-06 8:52
CherezZaboro31-Mar-06 8:52 
QuestionTimer stop working??? Pin
Small Rat31-Mar-06 8:26
Small Rat31-Mar-06 8:26 
AnswerRe: Timer stop working??? Pin
Judah Gabriel Himango31-Mar-06 9:04
sponsorJudah Gabriel Himango31-Mar-06 9:04 
GeneralRe: Timer stop working??? Pin
Small Rat31-Mar-06 9:57
Small Rat31-Mar-06 9:57 
GeneralRe: Timer stop working??? Pin
Robert M Greene1-Apr-06 15:04
Robert M Greene1-Apr-06 15:04 
QuestionProgram uses less RAM when minimised Pin
andy18031-Mar-06 7:37
andy18031-Mar-06 7:37 
AnswerRe: Program uses less RAM when minimised Pin
kasik31-Mar-06 8:15
kasik31-Mar-06 8:15 
Why would you want to?

It gives your app less room to 'move' and you will feel a reasonable performance hit if you do - due to the program having to ask for more memory when it needs it, rather than using its reserve. Appart from the nice warm fuzzy feeling you get when you see the smaller memory usage in Task Manager, this serves no purpose. The usage shown by task manager is merely the applications working set, not its actual memory consumption.

You can, however, do this in C# like so...
System.Diagnostics.Process currentProcess = System.Diagnostics.Process.GetCurrentProcess();
currentProcess.MinWorkingSet = currentProcess.MinWorkingSet;
(that code comes from here[^])

Cheers,
Will H
GeneralRe: Program uses less RAM when minimised Pin
andy18031-Mar-06 8:29
andy18031-Mar-06 8:29 
QuestionLoad Assembly (file not found!)? Pin
superwasabidave31-Mar-06 7:27
superwasabidave31-Mar-06 7:27 
AnswerRe: Load Assembly (file not found!)? Pin
leppie31-Mar-06 11:54
leppie31-Mar-06 11:54 
Questionhelp with text editor??? Pin
abdelhameed8131-Mar-06 6:52
abdelhameed8131-Mar-06 6:52 
AnswerRe: help with text editor??? Pin
Small Rat31-Mar-06 11:14
Small Rat31-Mar-06 11:14 
Questionword counter Pin
jessica gelina31-Mar-06 6:21
jessica gelina31-Mar-06 6:21 
AnswerRe: word counter Pin
User 665831-Mar-06 7:13
User 665831-Mar-06 7:13 
GeneralRe: word counter Pin
NormDroid31-Mar-06 9:01
professionalNormDroid31-Mar-06 9:01 
Questionquestion enjoy Pin
rizwan.afsar31-Mar-06 6:01
rizwan.afsar31-Mar-06 6:01 
AnswerRe: question enjoy Pin
Ed.Poore31-Mar-06 6:10
Ed.Poore31-Mar-06 6:10 
JokeRe: question enjoy Pin
Nicholas Butler31-Mar-06 6:11
sitebuilderNicholas Butler31-Mar-06 6:11 
AnswerRe: question enjoy Pin
Professor Sharada Ulhas31-Mar-06 6:31
Professor Sharada Ulhas31-Mar-06 6:31 
QuestionHow to switch forms? Pin
MarkyMark31-Mar-06 4:45
MarkyMark31-Mar-06 4:45 
AnswerRe: How to switch forms? Pin
naglbitur31-Mar-06 7:17
naglbitur31-Mar-06 7:17 
GeneralRe: How to switch forms? Pin
MarkyMark1-Apr-06 0:54
MarkyMark1-Apr-06 0:54 
GeneralRe: How to switch forms? Pin
naglbitur1-Apr-06 22:46
naglbitur1-Apr-06 22:46 
QuestionPopulating a TreeView in windows forms Pin
naglbitur31-Mar-06 4:37
naglbitur31-Mar-06 4:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.