Click here to Skip to main content
16,005,222 members
Home / Discussions / C#
   

C#

 
QuestionColor (Generics List) to Color[] Pin
bobsugar22228-Aug-08 23:29
bobsugar22228-Aug-08 23:29 
AnswerRe: Color (Generics List) to Color[] Pin
pbalaga29-Aug-08 2:02
pbalaga29-Aug-08 2:02 
GeneralRe: Color (Generics List) to Color[] Pin
bobsugar22229-Aug-08 3:36
bobsugar22229-Aug-08 3:36 
QuestionReturning the right side of the string Pin
Brendan Vogt28-Aug-08 23:19
Brendan Vogt28-Aug-08 23:19 
AnswerRe: Returning the right side of the string Pin
Anthony Mushrow28-Aug-08 23:30
professionalAnthony Mushrow28-Aug-08 23:30 
AnswerRe: Returning the right side of the string Pin
Brendan Vogt28-Aug-08 23:33
Brendan Vogt28-Aug-08 23:33 
GeneralRe: Returning the right side of the string Pin
#realJSOP28-Aug-08 23:45
professional#realJSOP28-Aug-08 23:45 
AnswerRe: Returning the right side of the string [modified] Pin
DaveyM6928-Aug-08 23:42
professionalDaveyM6928-Aug-08 23:42 
If you're going to need this functionality regurlarly you could create an extension method.
public static class Extensions
{
    public static string Right(this string str, int length)
    {
        if (length < str.Length)
            return str.Substring(str.Length - length);

        return str;
    }
}
then, so long as you've added the namespace you put the above into in your using statements at the top you can use it like any other built in string method i.e.
string x = @"ABCDEF\\123456";
Console.WriteLine(x.Right(6));


Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Expect everything to be hard and then enjoy the things that come easy. (code-frog)

modified on Friday, August 29, 2008 5:53 AM

AnswerRe: Returning the right side of the string Pin
#realJSOP28-Aug-08 23:43
professional#realJSOP28-Aug-08 23:43 
QuestionVisual Studio 2003 - How to get it ? Pin
Kenneth Broendum28-Aug-08 23:03
Kenneth Broendum28-Aug-08 23:03 
AnswerRe: Visual Studio 2003 - How to get it ? Pin
Anthony Mushrow28-Aug-08 23:23
professionalAnthony Mushrow28-Aug-08 23:23 
GeneralRe: Visual Studio 2003 - How to get it ? Pin
Manas Bhardwaj28-Aug-08 23:46
professionalManas Bhardwaj28-Aug-08 23:46 
GeneralRe: Visual Studio 2003 - How to get it ? Pin
Kenneth Broendum29-Aug-08 1:20
Kenneth Broendum29-Aug-08 1:20 
GeneralRe: Visual Studio 2003 - How to get it ? Pin
Mark Salsbery29-Aug-08 11:24
Mark Salsbery29-Aug-08 11:24 
GeneralRe: Visual Studio 2003 - How to get it ? Pin
Anthony Mushrow29-Aug-08 1:32
professionalAnthony Mushrow29-Aug-08 1:32 
AnswerRe: Visual Studio 2003 - How to get it ? Pin
Manas Bhardwaj28-Aug-08 23:49
professionalManas Bhardwaj28-Aug-08 23:49 
GeneralRe: Visual Studio 2003 - How to get it ? Pin
Kenneth Broendum29-Aug-08 1:32
Kenneth Broendum29-Aug-08 1:32 
GeneralRe: Visual Studio 2003 - How to get it ? Pin
m@u29-Aug-08 1:46
m@u29-Aug-08 1:46 
GeneralRe: Visual Studio 2003 - How to get it ? Pin
Mbah Dhaim29-Aug-08 12:35
Mbah Dhaim29-Aug-08 12:35 
QuestionCommunicate with other applications! Pin
Pedram Behroozi28-Aug-08 22:42
Pedram Behroozi28-Aug-08 22:42 
AnswerRe: Communicate with other applications! Pin
Manas Bhardwaj28-Aug-08 22:50
professionalManas Bhardwaj28-Aug-08 22:50 
AnswerRe: Communicate with other applications! Pin
Anthony Mushrow28-Aug-08 23:36
professionalAnthony Mushrow28-Aug-08 23:36 
GeneralRe: Communicate with other applications! Pin
Pedram Behroozi29-Aug-08 0:31
Pedram Behroozi29-Aug-08 0:31 
QuestionHelp with image loading! Pin
bugor7728-Aug-08 22:41
bugor7728-Aug-08 22:41 
AnswerRe: Help with image loading! Pin
Anthony Mushrow28-Aug-08 23:43
professionalAnthony Mushrow28-Aug-08 23:43 

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.