Click here to Skip to main content
15,901,853 members
Home / Discussions / C#
   

C#

 
AnswerRe: Restore value on exit Pin
Guffa3-Oct-06 9:11
Guffa3-Oct-06 9:11 
QuestionHow to call a function in another application in C#? Pin
zhyluopro3-Oct-06 6:33
zhyluopro3-Oct-06 6:33 
AnswerRe: How to call a function in another application in C#? Pin
CWIZO3-Oct-06 6:38
CWIZO3-Oct-06 6:38 
AnswerRe: How to call a function in another application in C#? Pin
Judah Gabriel Himango3-Oct-06 6:42
sponsorJudah Gabriel Himango3-Oct-06 6:42 
QuestionMath.Something -- Multiple of 10 Pin
drew.perkins3-Oct-06 6:03
drew.perkins3-Oct-06 6:03 
AnswerRe: Math.Something -- Multiple of 10 Pin
Leslie Sanford3-Oct-06 6:22
Leslie Sanford3-Oct-06 6:22 
GeneralRe: Math.Something -- Multiple of 10 Pin
drew.perkins3-Oct-06 6:40
drew.perkins3-Oct-06 6:40 
GeneralRe: Math.Something -- Multiple of 10 [modified] Pin
Alaric_3-Oct-06 7:55
professionalAlaric_3-Oct-06 7:55 
Well....I would suppose you do something like this

int number = 57;
int remainder= number%10;

//If you always are rounding up....51, 52, 53, & 54 become 60 and not 50
//then simply add remainder to your original number.
//If you are wanting to round down in these situations, you need a simple 
//switch(not the literal coding keyword switch...I mean a logical switch...an  
//if statement)
if(remainder< 5)
{
   number += remainder;
}
else
{ 
   number -= remainder;
}

That will probably give you the best results...and if you're doing this for homework, that's probably the way they wanted you to do it in the first place






-- modified at 15:17 Tuesday 3rd October, 2006
AnswerRe: Math.Something -- Multiple of 10 Pin
User 66583-Oct-06 10:28
User 66583-Oct-06 10:28 
QuestionHelp with Getting info on a running process Pin
UTRocketFan3-Oct-06 5:22
UTRocketFan3-Oct-06 5:22 
AnswerRe: Help with Getting info on a running process Pin
Michael Potter3-Oct-06 6:21
Michael Potter3-Oct-06 6:21 
GeneralRe: Help with Getting info on a running process Pin
UTRocketFan3-Oct-06 7:25
UTRocketFan3-Oct-06 7:25 
AnswerRe: Help with Getting info on a running process Pin
Nader Elshehabi3-Oct-06 6:22
Nader Elshehabi3-Oct-06 6:22 
QuestionQuestion on Visual Studio & Project References Pin
malharone3-Oct-06 5:17
malharone3-Oct-06 5:17 
AnswerRe: Question on Visual Studio & Project References Pin
Colin Angus Mackay3-Oct-06 5:25
Colin Angus Mackay3-Oct-06 5:25 
GeneralRe: Question on Visual Studio & Project References Pin
malharone3-Oct-06 5:39
malharone3-Oct-06 5:39 
GeneralRe: Question on Visual Studio & Project References Pin
malharone3-Oct-06 6:16
malharone3-Oct-06 6:16 
QuestionBindingsource C# Adding New Event Pin
JensB3-Oct-06 4:14
JensB3-Oct-06 4:14 
AnswerRe: Bindingsource C# Adding New Event Pin
Nader Elshehabi3-Oct-06 4:28
Nader Elshehabi3-Oct-06 4:28 
Questionlevel of run in win XP Pin
bspman3-Oct-06 3:51
bspman3-Oct-06 3:51 
QuestionRe: level of run in win XP Pin
Nader Elshehabi3-Oct-06 4:12
Nader Elshehabi3-Oct-06 4:12 
AnswerRe: level of run in win XP Pin
bspman3-Oct-06 6:43
bspman3-Oct-06 6:43 
GeneralRe: level of run in win XP Pin
Dave Kreskowiak3-Oct-06 9:15
mveDave Kreskowiak3-Oct-06 9:15 
GeneralRe: level of run in win XP Pin
Nader Elshehabi3-Oct-06 10:20
Nader Elshehabi3-Oct-06 10:20 
AnswerRe: level of run in win XP Pin
Thomas Stockwell3-Oct-06 14:50
professionalThomas Stockwell3-Oct-06 14:50 

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.