This is the code you need:
string strInput = "0001234";
strInput = strInput.TrimStart('0');
More Related Contents:
- De-serializing json format string
- How to cut up a string from an input file with Regex or String Split, C#?
- How to add a char every X specific char in C# [closed]
- Compression/Decompression string with C#
- How do I read a specified line in a text file?
- Best way to repeat a character in C#
- C# List to string with delimiter
- What is the difference between a mutable and immutable string in C#?
- How to check if a String contains any of some strings
- Why use String.Format? [duplicate]
- Verifying that a string contains only letters in C#
- How to compare Unicode characters that “look alike”?
- How can I create a more user-friendly string.format syntax?
- Add separator to string at every N characters?
- Fastest way to remove white spaces in string
- Difference between == operator and Equals() method in C#?
- Replacing escape characters from JSON
- Remove characters after specific character in string, then remove substring?
- Removing carriage return and linefeed from the end of a string in C#
- Byte to Binary String C# – Display all 8 digits
- c# search string in txt file
- How to extract decimal number from string in C#
- LINQ to Entities does not recognize the method ‘System.String[] Split(Char[])’ method,
- Verbatim string literals v escape sequences
- Formatting a string into columns using String Interpolation
- A fast hash function for string in C#
- Int to string: cannot convert from ‘method group’ to ‘string’ [closed]
- Does any one know of a faster method to do String.Split()?
- Is string actually an array of chars or does it just have an indexer?
- How do i replace accents (german) in .NET