Click here to Skip to main content
15,905,874 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to convert Visio files to pdf files in C#.net Pin
Nagy Vilmos7-Feb-13 3:13
professionalNagy Vilmos7-Feb-13 3:13 
GeneralRe: How to convert Visio files to pdf files in C#.net Pin
NarVish19-May-09 3:06
NarVish19-May-09 3:06 
QuestionSend PCL from c# to Printer HP LazerJet 4100 Pin
totoprog18-May-09 2:32
totoprog18-May-09 2:32 
QuestionInterface!!? Pin
pcsience18-May-09 2:26
pcsience18-May-09 2:26 
AnswerRe: Interface!!? Pin
Luc Pattyn18-May-09 2:30
sitebuilderLuc Pattyn18-May-09 2:30 
AnswerRe: Interface!!? Pin
molesworth18-May-09 2:34
molesworth18-May-09 2:34 
AnswerRe: Interface!!? Pin
OriginalGriff18-May-09 2:34
mveOriginalGriff18-May-09 2:34 
QuestionMore elegant way then .Split(']'); Pin
Rick van Woudenberg18-May-09 1:11
Rick van Woudenberg18-May-09 1:11 
Dear All,

I have ListView full of things, but basically all the items have the same format :

TY223 [16]
TW121 [223]
...
...

If I want to substract the value 16 and TY223 from TY223 [16] , I go about it like this :


string[] a = itm.Value.ToString().Split('[');
string[] b = a[1].ToString().Split(']');

string first = a[1].ToString().Trim();
string second = b[0].ToString().Trim();


This works fine, however I'm only after the value 16. Is there a more elegant way of extracting this value from the item, instead of using
.Split()


Kind regards,
AnswerRe: More elegant way then .Split(']'); [modified] Pin
Anthony Mushrow18-May-09 1:27
professionalAnthony Mushrow18-May-09 1:27 
AnswerRe: More elegant way then .Split(']'); Pin
monstale18-May-09 1:50
monstale18-May-09 1:50 
AnswerRe: More elegant way then .Split(']'); Pin
musefan18-May-09 2:15
musefan18-May-09 2:15 
AnswerRe: More elegant way then .Split(']'); Pin
PIEBALDconsult18-May-09 4:05
mvePIEBALDconsult18-May-09 4:05 
QuestionMulti threading Pin
yesu prakash17-May-09 23:53
yesu prakash17-May-09 23:53 
AnswerRe: Multi threading Pin
Rajesh R Subramanian18-May-09 1:04
professionalRajesh R Subramanian18-May-09 1:04 
AnswerRe: Multi threading Pin
Manas Bhardwaj18-May-09 2:53
professionalManas Bhardwaj18-May-09 2:53 
QuestionHow to remove form flickering ?? Pin
lnmca17-May-09 23:12
lnmca17-May-09 23:12 
AnswerRe: How to remove form flickering ?? Pin
Nagy Vilmos17-May-09 23:34
professionalNagy Vilmos17-May-09 23:34 
GeneralRe: How to remove form flickering ?? Pin
lnmca17-May-09 23:38
lnmca17-May-09 23:38 
GeneralRe: How to remove form flickering ?? Pin
Manas Bhardwaj17-May-09 23:43
professionalManas Bhardwaj17-May-09 23:43 
GeneralRe: How to remove form flickering ?? Pin
Mycroft Holmes18-May-09 2:16
professionalMycroft Holmes18-May-09 2:16 
GeneralRe: How to remove form flickering ?? Pin
Nagy Vilmos18-May-09 3:21
professionalNagy Vilmos18-May-09 3:21 
GeneralRe: How to remove form flickering ?? Pin
Baeltazor18-May-09 12:33
Baeltazor18-May-09 12:33 
QuestionCode Coverage for .dll Source file Pin
Net_Bond_2.017-May-09 22:12
Net_Bond_2.017-May-09 22:12 
AnswerRe: Code Coverage for .dll Source file Pin
Manas Bhardwaj17-May-09 22:20
professionalManas Bhardwaj17-May-09 22:20 
Questionturn off system Pin
shahin gholami17-May-09 22:10
shahin gholami17-May-09 22:10 

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.