Click here to Skip to main content
16,005,209 members
Home / Discussions / C#
   

C#

 
QuestionDataGidView Pin
Assaf829-Sep-07 4:16
Assaf829-Sep-07 4:16 
QuestionCompare listview item Pin
andredani9-Sep-07 3:22
andredani9-Sep-07 3:22 
AnswerRe: Compare listview item Pin
Mark F.9-Sep-07 11:18
Mark F.9-Sep-07 11:18 
GeneralRe: Compare listview item Pin
andredani10-Sep-07 0:37
andredani10-Sep-07 0:37 
GeneralRe: Compare listview item Pin
Mark F.10-Sep-07 3:40
Mark F.10-Sep-07 3:40 
GeneralRe: Compare listview item Pin
andredani10-Sep-07 4:17
andredani10-Sep-07 4:17 
QuestionProblem with LDF files ( database log file ) Pin
Developer6119-Sep-07 2:20
Developer6119-Sep-07 2:20 
QuestionHow to display # using / and % Pin
programming1019-Sep-07 2:16
programming1019-Sep-07 2:16 
Smile | :) I am new to programming and just started learning C#. I am using Visual C# 2005. I am working on a project where the user enters 5 digit # and then I need the digits to display separated by a space. This is a console application.

I got as far as asking to enter # then displaying the digits by using / and %. I am having a problem showing the 2nd, 3rd and 4th #.

How do you get the just the 1st digit to the right of the decimal to show. I used for example:

digit1 = ( value1 / 10000);
digit2 = ( value1 % 10000);
digit3 = ( value1 % 1000);
digit4 = ( value1 % 100);
digit5 = ( value1 % 10);

I am having a problem with the 2nd, 3rd and 4th to display only the first digit to the right of the decimal. All have been declared int..any help is appreciated, thanks

Thanks. Hope my post is okay with detail if not let me know, this is my first post
AnswerRe: How to display # using / and % Pin
Christian Graus9-Sep-07 2:33
protectorChristian Graus9-Sep-07 2:33 
AnswerRe: How to display # using / and % [modified] Pin
Julian Nicholls9-Sep-07 2:48
Julian Nicholls9-Sep-07 2:48 
QuestionCreating textboxes Pin
garga19-Sep-07 0:40
garga19-Sep-07 0:40 
AnswerRe: Creating textboxes Pin
Giorgi Dalakishvili9-Sep-07 1:07
mentorGiorgi Dalakishvili9-Sep-07 1:07 
Questiondrag and drop in datagridview??????? Pin
San@Coding9-Sep-07 0:14
San@Coding9-Sep-07 0:14 
Questionhow can send a Unicode message with "at command" and gsm ? Pin
B.A8-Sep-07 21:42
B.A8-Sep-07 21:42 
AnswerRe: how can send a Unicode message with "at command" and gsm ? Pin
Giorgi Dalakishvili8-Sep-07 23:34
mentorGiorgi Dalakishvili8-Sep-07 23:34 
GeneralRe: how can send a Unicode message with "at command" and gsm ? Pin
B.A9-Sep-07 19:18
B.A9-Sep-07 19:18 
GeneralRe: how can send a Unicode message with "at command" and gsm ? Pin
Giorgi Dalakishvili9-Sep-07 20:36
mentorGiorgi Dalakishvili9-Sep-07 20:36 
QuestionKey Presses Pin
ahojed8-Sep-07 21:00
ahojed8-Sep-07 21:00 
AnswerRe: Key Presses Pin
Ermak868-Sep-07 22:50
Ermak868-Sep-07 22:50 
AnswerRe: Key Presses Pin
Giorgi Dalakishvili8-Sep-07 23:23
mentorGiorgi Dalakishvili8-Sep-07 23:23 
GeneralRe: Key Presses Pin
ahojed9-Sep-07 4:14
ahojed9-Sep-07 4:14 
GeneralRe: Key Presses Pin
Giorgi Dalakishvili9-Sep-07 4:40
mentorGiorgi Dalakishvili9-Sep-07 4:40 
Questionsocket programing Pin
ali_reza_zareian8-Sep-07 19:19
ali_reza_zareian8-Sep-07 19:19 
AnswerRe: socket programing Pin
Ermak868-Sep-07 22:55
Ermak868-Sep-07 22:55 
Questionsocket programing Pin
ali_reza_zareian8-Sep-07 19:19
ali_reza_zareian8-Sep-07 19:19 

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.