Click here to Skip to main content
15,902,817 members
Home / Discussions / C#
   

C#

 
AnswerRe: Accessing form fields from another class Pin
Stefan Troschuetz13-Apr-06 5:04
Stefan Troschuetz13-Apr-06 5:04 
AnswerRe: Accessing form fields from another class Pin
Alvaro Mendez13-Apr-06 5:19
Alvaro Mendez13-Apr-06 5:19 
AnswerRe: Accessing form fields from another class Pin
Colin Angus Mackay13-Apr-06 6:24
Colin Angus Mackay13-Apr-06 6:24 
GeneralRe: Accessing form fields from another class Pin
adol_w13-Apr-06 6:48
adol_w13-Apr-06 6:48 
QuestionRemoving Decimal Palces from a division Pin
cybersurferdev13-Apr-06 4:07
cybersurferdev13-Apr-06 4:07 
AnswerRe: Removing Decimal Palces from a division Pin
Dan Neely13-Apr-06 4:25
Dan Neely13-Apr-06 4:25 
AnswerRe: Removing Decimal Palces from a division Pin
Stefan Troschuetz13-Apr-06 4:56
Stefan Troschuetz13-Apr-06 4:56 
AnswerRe: Removing Decimal Palces from a division Pin
Guffa13-Apr-06 5:52
Guffa13-Apr-06 5:52 
That depends.

Do you want to truncate or round the value?
Are you going to process the value further, or is it only to be displayed?

If you want to truncate the value (remove decimal part), cast the value to int or use Math.Truncate.

If you want to round the value (to nearest integer), use Math.Round.

If you want to round it only for displaying it, do the rounding when you convert it to a string, using ToString("n0").

---
b { font-weight: normal; }

QuestionFunction like invalirect in web Pin
papa198013-Apr-06 3:41
papa198013-Apr-06 3:41 
AnswerRe: Function like invalirect in web Pin
Judah Gabriel Himango13-Apr-06 5:01
sponsorJudah Gabriel Himango13-Apr-06 5:01 
QuestionNumeric Text Box Formatting Pin
StyleGuide13-Apr-06 3:35
StyleGuide13-Apr-06 3:35 
AnswerRe: Numeric Text Box Formatting Pin
Stefan Troschuetz13-Apr-06 4:01
Stefan Troschuetz13-Apr-06 4:01 
GeneralRe: Numeric Text Box Formatting Pin
StyleGuide13-Apr-06 4:17
StyleGuide13-Apr-06 4:17 
GeneralRe: Numeric Text Box Formatting Pin
Stefan Troschuetz13-Apr-06 4:52
Stefan Troschuetz13-Apr-06 4:52 
QuestionHow can I run a Select query from a datatable so that it only brings the Pin
ALBSHAH13-Apr-06 3:26
ALBSHAH13-Apr-06 3:26 
AnswerRe: How can I run a Select query from a datatable so that it only brings the Pin
CWIZO13-Apr-06 10:51
CWIZO13-Apr-06 10:51 
AnswerRe: How can I run a Select query from a datatable so that it only brings the Pin
Jakob Farian Krarup13-Apr-06 12:39
Jakob Farian Krarup13-Apr-06 12:39 
QuestionUltraWeb Grid Pin
cppdotnet13-Apr-06 2:42
cppdotnet13-Apr-06 2:42 
AnswerRe: UltraWeb Grid Pin
Robert Rohde13-Apr-06 2:54
Robert Rohde13-Apr-06 2:54 
QuestionPop up menu for a custom toolbar button on IE Pin
LMHP13-Apr-06 2:34
LMHP13-Apr-06 2:34 
QuestionPopUp Menu for a custom toolbar button on the IE Pin
LMHP13-Apr-06 2:32
LMHP13-Apr-06 2:32 
QuestionCombobox SeletedIndexchanged event Pin
Rickey_Me13-Apr-06 1:22
Rickey_Me13-Apr-06 1:22 
AnswerRe: Combobox SeletedIndexchanged event Pin
alexey N13-Apr-06 1:45
alexey N13-Apr-06 1:45 
Questionpc to pc calls Help ??? Pin
snouto13-Apr-06 0:54
snouto13-Apr-06 0:54 
QuestionDisplaying DataGrid Data Using Upper Case Pin
rosenvas13-Apr-06 0:47
rosenvas13-Apr-06 0:47 

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.