Click here to Skip to main content
15,914,109 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to lose focus on a textbox - SOLVED Pin
Goerlandt31-Aug-06 4:00
Goerlandt31-Aug-06 4:00 
GeneralRe: How to lose focus on a textbox - SOLVED Pin
Martin#31-Aug-06 4:46
Martin#31-Aug-06 4:46 
QuestionInserting Special Symbols & Alphabets in TextBox Pin
Chetan Ranpariya31-Aug-06 1:28
Chetan Ranpariya31-Aug-06 1:28 
Questionexport data from datagrid to excel [modified] Pin
Mamphekgo31-Aug-06 0:39
Mamphekgo31-Aug-06 0:39 
AnswerRe: export data from datagrid to excel Pin
narendrakumarp31-Aug-06 1:56
narendrakumarp31-Aug-06 1:56 
QuestionMath Calculations Pin
Gavin Roberts31-Aug-06 0:37
Gavin Roberts31-Aug-06 0:37 
AnswerRe: Math Calculations [modified] Pin
User 665831-Aug-06 1:09
User 665831-Aug-06 1:09 
AnswerRe: Math Calculations Pin
Green Fuze31-Aug-06 1:12
Green Fuze31-Aug-06 1:12 
if I understood the question correctly:

take the highest number (in our example its 172) and do the following:

172 / 10 = 17.2 -- but if it is "int" we will get --> 17
17 + 1 = 18 // add 1
18 * 10 = 180 // multiple by 10
and you rounded up the heighest number.

so the algorithm is:
roundUP(int x)
{
int result;
result = x/10;
result++;
result*=10;

if(result > 200)
result = 200;

return result;
}

it seems to me a pretty efficint way to calculate, unless I didn't understand the question.

hope it helps!
AnswerRe: Math Calculations Pin
Stefan Troschuetz31-Aug-06 1:17
Stefan Troschuetz31-Aug-06 1:17 
AnswerRe: Math Calculations Pin
Tamimi - Code31-Aug-06 1:36
Tamimi - Code31-Aug-06 1:36 
QuestionHi to One & All Pin
narendrakumarp30-Aug-06 23:55
narendrakumarp30-Aug-06 23:55 
QuestionRe: Hi to One & All Pin
beatles169231-Aug-06 2:32
beatles169231-Aug-06 2:32 
AnswerRe: Thanks for replying me Pin
narendrakumarp31-Aug-06 4:26
narendrakumarp31-Aug-06 4:26 
Questionhow to call telecommuniation services through pocket pc in c# [modified] Pin
mohdmeraj30-Aug-06 23:25
mohdmeraj30-Aug-06 23:25 
AnswerRe: how to call telecommuniation services through pocket pc in c# Pin
Divyang Mithaiwala31-Aug-06 0:25
Divyang Mithaiwala31-Aug-06 0:25 
QuestionEnum in C# Pin
peshawarcoder30-Aug-06 23:06
peshawarcoder30-Aug-06 23:06 
AnswerRe: Enum in C# Pin
John Petersen30-Aug-06 23:18
John Petersen30-Aug-06 23:18 
GeneralRe: Enum in C# Pin
peshawarcoder31-Aug-06 1:15
peshawarcoder31-Aug-06 1:15 
AnswerRe: Enum in C# Pin
Scott Dorman1-Sep-06 13:01
professionalScott Dorman1-Sep-06 13:01 
Questionstuck with web conrol properties Pin
Mukesh Kumar Gupta30-Aug-06 22:35
Mukesh Kumar Gupta30-Aug-06 22:35 
Questionmaking an event handler/callback function Pin
Yustme30-Aug-06 22:30
Yustme30-Aug-06 22:30 
AnswerRe: making an event handler/callback function Pin
Andrei Ungureanu31-Aug-06 2:28
Andrei Ungureanu31-Aug-06 2:28 
AnswerRe: making an event handler/callback function Pin
beatles169231-Aug-06 2:45
beatles169231-Aug-06 2:45 
QuestionMs Word Properties Pin
jrsreenivas30-Aug-06 21:47
jrsreenivas30-Aug-06 21:47 
AnswerRe: Ms Word Properties Pin
Coding C#30-Aug-06 23:24
Coding C#30-Aug-06 23:24 

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.