Click here to Skip to main content
15,890,825 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to replace very first character only......? Pin
stancrm26-Nov-07 19:59
stancrm26-Nov-07 19:59 
AnswerRe: How to replace very first character only......? Pin
Andrei Ungureanu26-Nov-07 20:04
Andrei Ungureanu26-Nov-07 20:04 
GeneralRe: How to replace very first character only......? Pin
Pankaj - Joshi26-Nov-07 21:34
Pankaj - Joshi26-Nov-07 21:34 
AnswerRe: How to replace very first character only......? Pin
Sun Rays26-Nov-07 20:11
Sun Rays26-Nov-07 20:11 
GeneralRe: How to replace very first character only......? Pin
Pankaj - Joshi26-Nov-07 21:35
Pankaj - Joshi26-Nov-07 21:35 
GeneralRe: How to replace very first character only......? Pin
Sun Rays26-Nov-07 22:07
Sun Rays26-Nov-07 22:07 
AnswerRe: How to replace very first character only......? Pin
KennyPatel26-Nov-07 21:12
KennyPatel26-Nov-07 21:12 
AnswerRe: How to replace very first character only......? Pin
KennyPatel26-Nov-07 21:14
KennyPatel26-Nov-07 21:14 
Hi.
I hope this will help you out..
Write somewhere in button event and test it....
string xNew="";
int j = 1;
for (int i = 0; i < TextBox1.Text.Length; i++)
{
string x = TextBox1.Text.Substring(i, 1);
if (x == "-")
{
if (j == 1)
{
xNew = xNew + ".";
j++;
}
else
{
xNew = xNew + x;
}
}
else {
xNew = xNew + x;
}
}
Label1.Text = xNew;
Thanks for watching it....

"Good Thing Goes With Good People..."

AnswerRe: How to replace very first character only......? Pin
KennyPatel26-Nov-07 21:15
KennyPatel26-Nov-07 21:15 
AnswerRe: How to replace very first character only......? Pin
KennyPatel26-Nov-07 21:18
KennyPatel26-Nov-07 21:18 
AnswerRe: How to replace very first character only......? Pin
Luc Pattyn27-Nov-07 1:58
sitebuilderLuc Pattyn27-Nov-07 1:58 
AnswerRe: How to replace very first character only......? Pin
PIEBALDconsult27-Nov-07 10:33
mvePIEBALDconsult27-Nov-07 10:33 
AnswerRe: How to replace very first character only......? [modified] Pin
PIEBALDconsult27-Nov-07 13:33
mvePIEBALDconsult27-Nov-07 13:33 
QuestionMasked Formating Pin
Shaahinm26-Nov-07 18:58
Shaahinm26-Nov-07 18:58 
AnswerRe: Masked Formating Pin
Michael Sync26-Nov-07 19:22
Michael Sync26-Nov-07 19:22 
GeneralRe: Masked Formating Pin
Shaahinm26-Nov-07 19:28
Shaahinm26-Nov-07 19:28 
GeneralRe: Masked Formating Pin
Michael Sync26-Nov-07 19:50
Michael Sync26-Nov-07 19:50 
QuestionWrapping a text in textbox Pin
anu8126-Nov-07 18:52
anu8126-Nov-07 18:52 
AnswerRe: Wrapping a text in textbox Pin
Michael Sync26-Nov-07 19:21
Michael Sync26-Nov-07 19:21 
GeneralRe: Wrapping a text in textbox Pin
anu8126-Nov-07 19:40
anu8126-Nov-07 19:40 
GeneralRe: Wrapping a text in textbox Pin
Michael Sync26-Nov-07 20:08
Michael Sync26-Nov-07 20:08 
GeneralRe: Wrapping a text in textbox Pin
anu8126-Nov-07 20:22
anu8126-Nov-07 20:22 
Questionabout develope scheme Pin
jason_mf26-Nov-07 17:49
jason_mf26-Nov-07 17:49 
AnswerRe: about develope scheme Pin
Michael Sync26-Nov-07 19:18
Michael Sync26-Nov-07 19:18 
QuestionHow to connect to Mobile Providers? Pin
Satish - Developer26-Nov-07 17:38
Satish - Developer26-Nov-07 17:38 

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.