Join 150,089 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,756 people online right now. Registration is fast and FREE... Join Now!
If you're just wanting to trim off spaces before sending it to SQL Server just use the Trim() method, the TrimStart method. For trimming spaces off the end of a string you can use the TrimEnd() method.