Click here to Skip to main content
15,914,371 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to use PictureBox Events in Datagrid ??? Pin
Abubakarsb13-Dec-05 6:02
Abubakarsb13-Dec-05 6:02 
QuestionStoring text information in an image Pin
Maqsood Ahmed12-Dec-05 19:58
Maqsood Ahmed12-Dec-05 19:58 
AnswerRe: Storing text information in an image Pin
Vikram A Punathambekar12-Dec-05 21:46
Vikram A Punathambekar12-Dec-05 21:46 
AnswerRe: Storing text information in an image Pin
MarcelErz12-Dec-05 21:48
MarcelErz12-Dec-05 21:48 
GeneralRe: Storing text information in an image Pin
Maqsood Ahmed13-Dec-05 20:20
Maqsood Ahmed13-Dec-05 20:20 
GeneralRe: Storing text information in an image Pin
MarcelErz13-Dec-05 21:14
MarcelErz13-Dec-05 21:14 
Questionwhat is the problem in the following code of classlibrary Project for log4net Pin
YogeshChoudhary12-Dec-05 19:04
YogeshChoudhary12-Dec-05 19:04 
Questionextracting substring Pin
Ankit Aneja12-Dec-05 18:57
Ankit Aneja12-Dec-05 18:57 
string comm="CONTSCAN E:\\projects backup\\ankitclam backup\\Clamtest\\testing\\hello.txt\r\n"
int x=comm.Length;
x=x-7;
string path;
path=comm.Substring(9,x);
MessageBox.Show(path);

it works fine and give path as
E:\projects backup\ankitclam backup\Clamtest\testing\hello.txt



but when i give path
string comm="CONTSCAN E:\\projects backup\\ankitclam backup\\Clamtest\\testing\r\n"
int x=comm.Length;
x=x-7;
string path;
path=comm.Substring(9,x); //crashes here
MessageBox.Show(path);

crashes on line : path=comm.Substring(9,x);

throwing exception
System.Argument.OutOfRangeException:Index and length must refer to location within the string.
Parameter name:length
at System.String.Substring(Int32 startIndex,Int32 length)


Ankit Aneja
"Nothing is impossible. The word itself says - I M possible"

AnswerRe: extracting substring Pin
HakunaMatada12-Dec-05 19:33
HakunaMatada12-Dec-05 19:33 
GeneralRe: extracting substring Pin
Ankit Aneja12-Dec-05 19:47
Ankit Aneja12-Dec-05 19:47 
GeneralRe: extracting substring Pin
HakunaMatada12-Dec-05 20:15
HakunaMatada12-Dec-05 20:15 
GeneralRe: extracting substring Pin
Ankit Aneja12-Dec-05 20:27
Ankit Aneja12-Dec-05 20:27 
AnswerRe: extracting substring Pin
Anbuselvan12-Dec-05 20:19
Anbuselvan12-Dec-05 20:19 
GeneralRe: extracting substring Pin
Ankit Aneja12-Dec-05 20:27
Ankit Aneja12-Dec-05 20:27 
GeneralRe: extracting substring Pin
HakunaMatada12-Dec-05 20:31
HakunaMatada12-Dec-05 20:31 
QuestionRegarding calling Events of Internet Explorer Pin
A.Grover12-Dec-05 18:50
A.Grover12-Dec-05 18:50 
QuestionWindows Service Question. Pin
HakunaMatada12-Dec-05 18:30
HakunaMatada12-Dec-05 18:30 
AnswerRe: Windows Service Question. Pin
Ray Cassick12-Dec-05 18:48
Ray Cassick12-Dec-05 18:48 
GeneralRe: Windows Service Question. Pin
HakunaMatada12-Dec-05 20:22
HakunaMatada12-Dec-05 20:22 
GeneralRe: Windows Service Question. Pin
Scott Serl13-Dec-05 7:00
Scott Serl13-Dec-05 7:00 
GeneralRe: Windows Service Question. Pin
HakunaMatada13-Dec-05 17:07
HakunaMatada13-Dec-05 17:07 
AnswerRe: Windows Service Question. Pin
Dave Kreskowiak12-Dec-05 19:54
mveDave Kreskowiak12-Dec-05 19:54 
Questionarranging ownedforms(owner-ownedform) Pin
tonato84812-Dec-05 17:41
tonato84812-Dec-05 17:41 
AnswerRe: arranging ownedforms(owner-ownedform) Pin
HakunaMatada12-Dec-05 18:23
HakunaMatada12-Dec-05 18:23 
QuestionHow to lock background forms when foreground form is active? Pin
2hdass12-Dec-05 17:24
2hdass12-Dec-05 17:24 

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.