Click here to Skip to main content
16,013,489 members
Home / Discussions / C#
   

C#

 
GeneralRe: Form OnPaint Overflow Exception Pin
Shajeel26-Jun-06 19:20
Shajeel26-Jun-06 19:20 
GeneralRe: Form OnPaint Overflow Exception Pin
Judah Gabriel Himango27-Jun-06 4:16
sponsorJudah Gabriel Himango27-Jun-06 4:16 
GeneralRe: Form OnPaint Overflow Exception Pin
Shajeel27-Jun-06 20:00
Shajeel27-Jun-06 20:00 
Questioni incounter substring problem Pin
paulcortez26-Jun-06 2:12
paulcortez26-Jun-06 2:12 
AnswerRe: i incounter substring problem Pin
Daniele Ferrero26-Jun-06 2:18
Daniele Ferrero26-Jun-06 2:18 
GeneralRe: i incounter substring problem Pin
johan313126-Jun-06 3:48
johan313126-Jun-06 3:48 
GeneralRe: i incounter substring problem Pin
paulcortez27-Jun-06 21:52
paulcortez27-Jun-06 21:52 
AnswerRe: i incounter substring problem Pin
Mike Poz26-Jun-06 13:30
Mike Poz26-Jun-06 13:30 
paulcortez wrote:
Code was supposed to be MessageBox.Show(strTest.SubString(2, 3)); right?


Second parameter is number of characters in the string you want to display. If you want to display the last two characters in the string, leave off the second parameter.

If you need to display a certain number of characters starting at 2 and you want to be sure it doesn't hit the out of range check the starting character plus number of chars you want to display against the strTest.Length value. If the starting plus number to display exceeds length, then you're out of bounds.

Mike Poz
GeneralRe: i incounter substring problem Pin
paulcortez27-Jun-06 21:53
paulcortez27-Jun-06 21:53 
AnswerRe: i incounter substring problem Pin
Bogdan Damian27-Jun-06 8:04
Bogdan Damian27-Jun-06 8:04 
QuestionCrystal Report with windows forms Pin
Mairaaj Khan26-Jun-06 2:06
professionalMairaaj Khan26-Jun-06 2:06 
AnswerRe: Crystal Report with windows forms Pin
Michael P Butler26-Jun-06 2:11
Michael P Butler26-Jun-06 2:11 
GeneralRe: Crystal Report with windows forms Pin
Mairaaj Khan26-Jun-06 3:12
professionalMairaaj Khan26-Jun-06 3:12 
GeneralRe: Crystal Report with windows forms Pin
Michael P Butler26-Jun-06 3:46
Michael P Butler26-Jun-06 3:46 
GeneralRe: Crystal Report with windows forms Pin
Mairaaj Khan27-Jun-06 0:08
professionalMairaaj Khan27-Jun-06 0:08 
Questiondatabase problem [modified] Pin
johan313126-Jun-06 1:56
johan313126-Jun-06 1:56 
AnswerRe: database problem Pin
Colin Angus Mackay26-Jun-06 2:09
Colin Angus Mackay26-Jun-06 2:09 
QuestionHow to disable the Browser Back Functionality Pin
VenkataRamana.Gali26-Jun-06 1:55
VenkataRamana.Gali26-Jun-06 1:55 
AnswerRe: How to disable the Browser Back Functionality Pin
Mike Poz28-Jun-06 7:47
Mike Poz28-Jun-06 7:47 
QuestionOracle Client 9i accessing problem Pin
VenkataRamana.Gali26-Jun-06 1:50
VenkataRamana.Gali26-Jun-06 1:50 
AnswerRe: Oracle Client 9i accessing problem Pin
esjq26-Jun-06 3:39
esjq26-Jun-06 3:39 
Questionhow to read write xml file [modified] Pin
foysal mamun26-Jun-06 1:28
foysal mamun26-Jun-06 1:28 
AnswerRe: how to read write xml file Pin
Nader Elshehabi26-Jun-06 1:37
Nader Elshehabi26-Jun-06 1:37 
GeneralRe: how to read write xml file Pin
foysal mamun26-Jun-06 2:11
foysal mamun26-Jun-06 2:11 
GeneralRe: how to read write xml file Pin
Michael P Butler26-Jun-06 2:14
Michael P Butler26-Jun-06 2:14 

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.