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

C#

 
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 
AnswerRe: extracting substring Pin
HakunaMatada12-Dec-05 19:33
HakunaMatada12-Dec-05 19:33 
Both of the above blocks of code will throw an ArgumentOutofRange Exception. That's because the length you are trying to extract is more than the length of the string. The correct block of code would be:

string comm = @"CONTSCAN E:\projects backup\ankitclam backup\Clamtest\testing\hello.txt\r\n" ;
int x = comm.Length ;
x -= 9;
string path = comm.Substring(9,x) ;

Hope this helps.Smile | :)

Bikash Rai
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 
AnswerRe: How to lock background forms when foreground form is active? Pin
Christian Graus12-Dec-05 17:42
protectorChristian Graus12-Dec-05 17:42 

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.