Click here to Skip to main content
15,897,519 members
Home / Discussions / C#
   

C#

 
GeneralMonitoring Internet Traffic Pin
aj.esler2-Mar-08 15:31
aj.esler2-Mar-08 15:31 
GeneralRe: Monitoring Internet Traffic Pin
Laubi2-Mar-08 20:16
Laubi2-Mar-08 20:16 
QuestionHow Pinged me??? Pin
nelsonpaixao2-Mar-08 14:57
nelsonpaixao2-Mar-08 14:57 
GeneralRe: How Pinged me??? Pin
Laubi2-Mar-08 20:18
Laubi2-Mar-08 20:18 
GeneralListboxes ... finding certain numbers Pin
Jacob Dixon2-Mar-08 14:32
Jacob Dixon2-Mar-08 14:32 
GeneralRe: Listboxes ... finding certain numbers Pin
Anthony Mushrow2-Mar-08 14:40
professionalAnthony Mushrow2-Mar-08 14:40 
GeneralRe: Listboxes ... finding certain numbers Pin
Jacob Dixon2-Mar-08 14:47
Jacob Dixon2-Mar-08 14:47 
GeneralRe: Listboxes ... finding certain numbers Pin
Luc Pattyn2-Mar-08 15:20
sitebuilderLuc Pattyn2-Mar-08 15:20 
Hi,

1.
string.Remove() does not modify the string, it returns a new string, so you should
write thenumber=thenumber.Remove(3, length); etc.
That is because strings are immutable, nothing in .NET can modify them.

2.
If you are only interested in part of a string, string.Substring() is the method you want,
hence thenumber=thenumber.Substring(1, 2); holds the second and third char.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.


GeneralRe: Listboxes ... finding certain numbers Pin
aj.esler2-Mar-08 14:49
aj.esler2-Mar-08 14:49 
GeneralRe: Listboxes ... finding certain numbers Pin
Jacob Dixon2-Mar-08 14:54
Jacob Dixon2-Mar-08 14:54 
AnswerRe: Listboxes ... finding certain numbers Pin
dipak.dipak2-Mar-08 19:25
dipak.dipak2-Mar-08 19:25 
QuestionHow to load Kernel32.dll and use GetSystemInfo(...) Pin
gshen2-Mar-08 12:59
gshen2-Mar-08 12:59 
AnswerRe: How to load Kernel32.dll and use GetSystemInfo(...) Pin
Anthony Mushrow2-Mar-08 14:14
professionalAnthony Mushrow2-Mar-08 14:14 
AnswerRe: How to load Kernel32.dll and use GetSystemInfo(...) Pin
Luc Pattyn2-Mar-08 15:22
sitebuilderLuc Pattyn2-Mar-08 15:22 
GeneralOpening multiple files Pin
Jacob Dixon2-Mar-08 10:16
Jacob Dixon2-Mar-08 10:16 
GeneralRe: Opening multiple files Pin
Giorgi Dalakishvili2-Mar-08 10:22
mentorGiorgi Dalakishvili2-Mar-08 10:22 
GeneralRe: Opening multiple files Pin
Jacob Dixon2-Mar-08 10:24
Jacob Dixon2-Mar-08 10:24 
GeneralRe: Opening multiple files Pin
Jacob Dixon2-Mar-08 10:28
Jacob Dixon2-Mar-08 10:28 
GeneralRe: Opening multiple files Pin
Giorgi Dalakishvili2-Mar-08 10:50
mentorGiorgi Dalakishvili2-Mar-08 10:50 
GeneralRe: Opening multiple files Pin
pmarfleet2-Mar-08 10:39
pmarfleet2-Mar-08 10:39 
Questionhow to save an office file to database? Pin
mahmoud wafy2-Mar-08 10:06
mahmoud wafy2-Mar-08 10:06 
GeneralRe: how to save an office file to database? Pin
Giorgi Dalakishvili2-Mar-08 10:18
mentorGiorgi Dalakishvili2-Mar-08 10:18 
Questioncopy part of table from one DB to table in another DB don't work Pin
evgenik2-Mar-08 8:44
evgenik2-Mar-08 8:44 
GeneralRe: copy part of table from one DB to table in another DB don't work Pin
Paul Conrad27-Mar-08 12:27
professionalPaul Conrad27-Mar-08 12:27 
Generalneed to open a spreadsheet document in a listView Pin
Walaza2-Mar-08 7:03
Walaza2-Mar-08 7:03 

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.