Click here to Skip to main content
15,912,205 members
Home / Discussions / C#
   

C#

 
AnswerRe: return 0? Pin
mav.northwind6-Jan-09 19:59
mav.northwind6-Jan-09 19:59 
AnswerRe: return 0? Pin
rah_sin6-Jan-09 20:03
professionalrah_sin6-Jan-09 20:03 
AnswerRe: return 0? Pin
«_Superman_»6-Jan-09 21:06
professional«_Superman_»6-Jan-09 21:06 
AnswerRe: return 0? Pin
CPallini6-Jan-09 22:16
mveCPallini6-Jan-09 22:16 
AnswerRe: return 0? Pin
Dragonfly_Lee6-Jan-09 22:52
Dragonfly_Lee6-Jan-09 22:52 
QuestionBlank space in textbox Pin
yesu prakash6-Jan-09 18:36
yesu prakash6-Jan-09 18:36 
AnswerRe: Blank space in textbox Pin
«_Superman_»6-Jan-09 18:50
professional«_Superman_»6-Jan-09 18:50 
AnswerRe: Blank space in textbox Pin
Guffa6-Jan-09 18:54
Guffa6-Jan-09 18:54 
ypki wrote:
How to check that a textbox contain only spaces.


There are many ways, but they all end up looping through the string in some way or the other to check each character.

For example, in framework 3.5 you can use extension methods. The string implements IEnumerable<char>, so you can use the All method to enumerate the characters and check a condition for each character:

string text = "       ";<br />
bool allSpaces = text.All(c => c == ' ');


ypki wrote:
How to trim all the space after the string. String.Trim() only clear one space after the charecter in c#


No, it doesn't. It removes all white space characters at the beginning and at the end of the string.

Despite everything, the person most likely to be fooling you next is yourself.

AnswerRe: Blank space in textbox Pin
Dragonfly_Lee6-Jan-09 19:03
Dragonfly_Lee6-Jan-09 19:03 
AnswerRe: Blank space in textbox Pin
0x3c06-Jan-09 20:12
0x3c06-Jan-09 20:12 
QuestionIntegrating Logging Apllication Block with WCF Application Pin
Amit Agarrwal6-Jan-09 18:31
Amit Agarrwal6-Jan-09 18:31 
AnswerRe: Integrating Logging Apllication Block with WCF Application Pin
Not Active6-Jan-09 19:18
mentorNot Active6-Jan-09 19:18 
QuestionWeb Browser DLL Pin
ravanth6-Jan-09 18:13
ravanth6-Jan-09 18:13 
AnswerRe: Web Browser DLL Pin
Eddy Vluggen7-Jan-09 4:45
professionalEddy Vluggen7-Jan-09 4:45 
GeneralRe: Web Browser DLL Pin
ravanth8-Jan-09 1:09
ravanth8-Jan-09 1:09 
Questionequalent c++ operator in c# Pin
lawrenceinba6-Jan-09 18:12
lawrenceinba6-Jan-09 18:12 
AnswerRe: equalent c++ operator in c# Pin
«_Superman_»6-Jan-09 18:55
professional«_Superman_»6-Jan-09 18:55 
GeneralRe: equalent c++ operator in c# Pin
lawrenceinba6-Jan-09 20:28
lawrenceinba6-Jan-09 20:28 
AnswerRe: equalent c++ operator in c# Pin
Guffa6-Jan-09 19:02
Guffa6-Jan-09 19:02 
GeneralRe: equalent c++ operator in c# Pin
lawrenceinba6-Jan-09 20:27
lawrenceinba6-Jan-09 20:27 
Generalbook Pin
Luc Pattyn6-Jan-09 23:24
sitebuilderLuc Pattyn6-Jan-09 23:24 
GeneralRe: book Pin
lawrenceinba6-Jan-09 23:45
lawrenceinba6-Jan-09 23:45 
QuestionC# - Static classes Pin
DineshSharmain6-Jan-09 18:08
DineshSharmain6-Jan-09 18:08 
AnswerRe: C# - Static classes Pin
Guffa6-Jan-09 18:45
Guffa6-Jan-09 18:45 
AnswerRe: C# - Static classes Pin
«_Superman_»6-Jan-09 19:00
professional«_Superman_»6-Jan-09 19:00 

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.