Click here to Skip to main content
15,898,773 members

Comments by deepak.m.shrma (Top 28 by date)

deepak.m.shrma 23-Nov-12 4:06am View    
i updated the code please check it now. its working well i think.
deepak.m.shrma 22-Nov-12 22:38pm View    
Hmm. will you share what you xactly want to do.
deepak.m.shrma 22-Nov-12 5:29am View    
actually i do not use substring or contain method. i actually use .length property of the string. here in ist lin.
ie.
(comboBox1.Text.Length - comboBox1.Text.Trim().Length > 0)
i checked. whether textbox contain space start and ends of the text.
if text original length - removing start or end space > 0 its mean it contain space either start of the text or at end.

in 2nd line or check.
ie.
comboBox1.Text.Trim().Length - comboBox1.Text.Trim().Replace(" ", "").Length > 1)

i checked that text does not contain more than 2 space between its name and sir name.
simple.
deepak.m.shrma 21-Nov-12 5:46am View    
LOL.... :-P down voted. :-P
deepak.m.shrma 21-Nov-12 3:45am View    
will you post your whole htlm..it'll very easy to debug your core. where you loosing focus.