Click here to Skip to main content
16,012,611 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem when closing DB in Destructor Pin
Rickard Andersson2012-Jun-02 5:44
Rickard Andersson2012-Jun-02 5:44 
GeneralTrim() doesn't work!! Pin
Rickard Andersson2012-Jun-02 0:14
Rickard Andersson2012-Jun-02 0:14 
GeneralRe: Trim() doesn't work!! Pin
David Wengier12-Jun-02 0:46
David Wengier12-Jun-02 0:46 
GeneralRe: Trim() doesn't work!! Pin
Rickard Andersson2012-Jun-02 1:38
Rickard Andersson2012-Jun-02 1:38 
GeneralRe: Trim() doesn't work!! Pin
Nish Nishant12-Jun-02 0:48
sitebuilderNish Nishant12-Jun-02 0:48 
GeneralRe: Trim() doesn't work!! Pin
Rickard Andersson2012-Jun-02 1:40
Rickard Andersson2012-Jun-02 1:40 
GeneralRe: Trim() doesn't work!! Pin
AndyG12-Jun-02 4:05
AndyG12-Jun-02 4:05 
GeneralRe: Trim() DOES work!! Pin
leppie12-Jun-02 22:03
leppie12-Jun-02 22:03 
Quote frpm MSDN ( I suggest you use it Smile | :) )

String.Trim Method

Removes all occurrences of a set of specified characters from the beginning and end of this instance.

Overload List
Removes all occurrences of white space characters from the beginning and end of this instance.
<br />
public string Trim();<br />

Removes all occurrences of a set of characters specified in a Unicode character array from the beginning and end of this instance.
<br />
public string Trim(params char[]);<br />


IOW

<br />
String str = this.textBox1.Text;<br />
String newStr = str.Trim(' '); // note space char<br />
MessageBox.Show(newStr);<br />

Hope this helps Smile | :)
GeneralControl ID's Pin
vikramlinux11-Jun-02 19:22
vikramlinux11-Jun-02 19:22 
GeneralRe: Control ID's Pin
James T. Johnson11-Jun-02 19:20
James T. Johnson11-Jun-02 19:20 
GeneralRe: Control ID's Pin
vikramlinux11-Jun-02 19:55
vikramlinux11-Jun-02 19:55 
GeneralRe: Control ID's Pin
Rama Krishna Vavilala12-Jun-02 0:12
Rama Krishna Vavilala12-Jun-02 0:12 
GeneralRe: Control ID's Pin
Nish Nishant11-Jun-02 19:38
sitebuilderNish Nishant11-Jun-02 19:38 
GeneralRe: Control ID's Pin
vikramlinux12-Jun-02 0:28
vikramlinux12-Jun-02 0:28 
GeneralRe: Control ID's Pin
Nish Nishant12-Jun-02 0:44
sitebuilderNish Nishant12-Jun-02 0:44 
GeneralRe: Control ID's Pin
vikramlinux12-Jun-02 0:43
vikramlinux12-Jun-02 0:43 
GeneralRe: Control ID's Pin
Nish Nishant12-Jun-02 0:55
sitebuilderNish Nishant12-Jun-02 0:55 
GeneralRe: Control ID's Pin
vikramlinux12-Jun-02 1:14
vikramlinux12-Jun-02 1:14 
GeneralRe: Control ID's Pin
Nish Nishant12-Jun-02 1:43
sitebuilderNish Nishant12-Jun-02 1:43 
GeneralRe: Control ID's Pin
Rickard Andersson2012-Jun-02 1:44
Rickard Andersson2012-Jun-02 1:44 
GeneralRe: Control ID's Pin
Nish Nishant12-Jun-02 1:46
sitebuilderNish Nishant12-Jun-02 1:46 
GeneralRe: Control ID's Pin
Rickard Andersson2012-Jun-02 2:05
Rickard Andersson2012-Jun-02 2:05 
GeneralInterprocess communication Pin
paulb11-Jun-02 17:31
paulb11-Jun-02 17:31 
GeneralRe: Interprocess communication Pin
Nish Nishant11-Jun-02 18:12
sitebuilderNish Nishant11-Jun-02 18:12 
GeneralRe: Interprocess communication Pin
Nish Nishant11-Jun-02 18:17
sitebuilderNish Nishant11-Jun-02 18:17 

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.