Click here to Skip to main content
15,881,757 members
Home / Discussions / C#
   

C#

 
GeneralRe: Password Encryption Pin
zaboboa24-Jan-06 5:01
zaboboa24-Jan-06 5:01 
QuestionHow to print a file? Pin
empty.at24-Jan-06 4:44
empty.at24-Jan-06 4:44 
AnswerRe: How to print a file? Pin
Judah Gabriel Himango24-Jan-06 4:57
sponsorJudah Gabriel Himango24-Jan-06 4:57 
Question.net 2.0 Pin
fmardani24-Jan-06 4:41
fmardani24-Jan-06 4:41 
AnswerRe: .net 2.0 Pin
Judah Gabriel Himango24-Jan-06 4:53
sponsorJudah Gabriel Himango24-Jan-06 4:53 
Questionparsing a string Pin
Camron24-Jan-06 4:37
Camron24-Jan-06 4:37 
AnswerRe: parsing a string Pin
Darryl Borden24-Jan-06 4:46
Darryl Borden24-Jan-06 4:46 
AnswerRe: parsing a string Pin
LighthouseJ24-Jan-06 9:14
LighthouseJ24-Jan-06 9:14 
Well, one thing I'm doing is this. I have a String variable called 'filename' which contains the entire path and filename, including extension. I want just the filename, no directories or extensions. To do this, I have this one command:
String shortened = Filename.Substring(Filename.LastIndexOf("\\") + 1, Filename.LastIndexOf(".") - Filename.LastIndexOf("\\") - 1);


LastIndexOf() figures out the number position of the last one of that kind of character.
Substring() extracts out n number of characters starting at position m, where the arguments are .Substring(m, n)

C# isn't meant to parse out strings like PHP, PERL and others but I think you can find quite suitable alternatives using those methods and possibly others.
QuestionWhere is always show selection in Listviews? Pin
ByStorm Software24-Jan-06 4:11
ByStorm Software24-Jan-06 4:11 
AnswerRe: Where is always show selection in Listviews? Pin
Joel Lucsy24-Jan-06 4:25
Joel Lucsy24-Jan-06 4:25 
GeneralRe: Where is always show selection in Listviews? Pin
ByStorm Software24-Jan-06 4:45
ByStorm Software24-Jan-06 4:45 
QuestionTitleBar Pin
Sabry190524-Jan-06 3:59
Sabry190524-Jan-06 3:59 
AnswerRe: TitleBar Pin
tarasn24-Jan-06 5:26
tarasn24-Jan-06 5:26 
QuestionSocket Does'nt Accept New Connections After some times Pin
Zeeshan Gulzar24-Jan-06 3:41
Zeeshan Gulzar24-Jan-06 3:41 
AnswerRe: Socket Does'nt Accept New Connections After some times Pin
Le centriste24-Jan-06 3:56
Le centriste24-Jan-06 3:56 
QuestionFTPWebRequest with EnableSsl Pin
Sweetrpea24-Jan-06 3:30
Sweetrpea24-Jan-06 3:30 
QuestionconfigurationManager Pin
fmardani24-Jan-06 3:16
fmardani24-Jan-06 3:16 
AnswerRe: configurationManager Pin
Colin Angus Mackay24-Jan-06 4:53
Colin Angus Mackay24-Jan-06 4:53 
QuestionProblem in Altering a dbf table , table corrupts Pin
rudra08324-Jan-06 2:50
rudra08324-Jan-06 2:50 
AnswerRe: Problem in Altering a dbf table , table corrupts Pin
esjq24-Jan-06 3:25
esjq24-Jan-06 3:25 
QuestionXML Treeview Pin
PHDENG8124-Jan-06 2:44
PHDENG8124-Jan-06 2:44 
AnswerRe: XML Treeview Pin
lmoelleb24-Jan-06 4:32
lmoelleb24-Jan-06 4:32 
AnswerRe: XML Treeview Pin
tarasn24-Jan-06 5:32
tarasn24-Jan-06 5:32 
Questionappsetting in .net 2.0 Pin
fmardani24-Jan-06 2:40
fmardani24-Jan-06 2:40 
AnswerRe: appsetting in .net 2.0 Pin
Le centriste24-Jan-06 3:59
Le centriste24-Jan-06 3:59 

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.