Click here to Skip to main content
15,895,370 members
Home / Discussions / C#
   

C#

 
GeneralRe: c# hide/remove properties from propertygrid Pin
Member 206816923-Dec-09 1:02
Member 206816923-Dec-09 1:02 
GeneralRe: c# hide/remove properties from propertygrid Pin
Jordon4Kraftd23-Dec-09 10:50
Jordon4Kraftd23-Dec-09 10:50 
QuestionHelp, multiple projects solution . Pin
Kobi_Z22-Dec-09 22:13
Kobi_Z22-Dec-09 22:13 
AnswerRe: Help, multiple projects solution . Pin
MatthysDT22-Dec-09 22:36
MatthysDT22-Dec-09 22:36 
GeneralRe: Help, multiple projects solution . Pin
Kobi_Z22-Dec-09 23:23
Kobi_Z22-Dec-09 23:23 
AnswerRe: Help, multiple projects solution . Pin
MatthysDT22-Dec-09 23:39
MatthysDT22-Dec-09 23:39 
GeneralRe: Help, multiple projects solution . Pin
V.22-Dec-09 23:55
professionalV.22-Dec-09 23:55 
AnswerRe: Help, multiple projects solution . Pin
OriginalGriff22-Dec-09 23:47
mveOriginalGriff22-Dec-09 23:47 
AnswerRe: Help, multiple projects solution . Pin
#realJSOP23-Dec-09 0:22
mve#realJSOP23-Dec-09 0:22 
QuestionHow do I remove the default support URL from my custom EventLog entry? Pin
MatthysDT22-Dec-09 21:49
MatthysDT22-Dec-09 21:49 
QuestionPolynomial finder Pin
frommi22-Dec-09 21:33
frommi22-Dec-09 21:33 
AnswerRe: Polynomial finder Pin
OriginalGriff22-Dec-09 22:11
mveOriginalGriff22-Dec-09 22:11 
QuestionFont and Size setting in Datagridview Pin
M Riaz Bashir22-Dec-09 20:54
M Riaz Bashir22-Dec-09 20:54 
AnswerRe: Font and Size setting in Datagridview Pin
MatthysDT22-Dec-09 22:27
MatthysDT22-Dec-09 22:27 
QuestionAccess Kernel-Mode dll Pin
AB_dev22-Dec-09 20:45
AB_dev22-Dec-09 20:45 
AnswerRe: Access Kernel-Mode dll Pin
Roger Wright22-Dec-09 21:09
professionalRoger Wright22-Dec-09 21:09 
GeneralRe: Access Kernel-Mode dll Pin
AB_dev22-Dec-09 21:15
AB_dev22-Dec-09 21:15 
Questionno rounds Pin
Kenny Chen22-Dec-09 20:40
Kenny Chen22-Dec-09 20:40 
AnswerRe: no rounds Pin
#realJSOP23-Dec-09 0:25
mve#realJSOP23-Dec-09 0:25 
There are a lot of solutions to your problem, but you didn't tell us whether or not you're displaying the number, or merely want to omit the fractional part from further calculations. Assuming you just want to display, it, do it this way:

string cString = Convert.ToInt32(c).ToString();


If you want to change the actual value, you can use Math.Floor, or even Convert.ToInt32 (I think).

.45 ACP - because shooting twice is just silly
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

AnswerRe: no rounds Pin
Jordon4Kraftd23-Dec-09 13:09
Jordon4Kraftd23-Dec-09 13:09 
AnswerRe: no rounds Pin
Kenny Chen23-Dec-09 14:37
Kenny Chen23-Dec-09 14:37 
QuestionCheckbox & CheckedChanged event... really? Pin
BDJones22-Dec-09 14:00
BDJones22-Dec-09 14:00 
AnswerRe: Checkbox & CheckedChanged event... really? Pin
Luc Pattyn22-Dec-09 15:22
sitebuilderLuc Pattyn22-Dec-09 15:22 
GeneralRe: Checkbox & CheckedChanged event... really? Pin
BDJones23-Dec-09 4:33
BDJones23-Dec-09 4:33 
AnswerRe: Checkbox & CheckedChanged event... really? Pin
J4amieC22-Dec-09 21:38
J4amieC22-Dec-09 21:38 

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.