Click here to Skip to main content
15,902,876 members
Home / Discussions / C#
   

C#

 
AnswerRe: specify area for Drag'n'Drop Pin
Dave Kreskowiak19-Jul-11 3:59
mveDave Kreskowiak19-Jul-11 3:59 
AnswerRe: specify area for Drag'n'Drop Pin
Alan N19-Jul-11 4:30
Alan N19-Jul-11 4:30 
Questionget parent and level of the xml node from XPathNavigator Pin
NarVish19-Jul-11 0:34
NarVish19-Jul-11 0:34 
AnswerRe: get parent and level of the xml node from XPathNavigator Pin
Mirko198019-Jul-11 1:38
Mirko198019-Jul-11 1:38 
GeneralRe: get parent and level of the xml node from XPathNavigator Pin
NarVish19-Jul-11 2:35
NarVish19-Jul-11 2:35 
GeneralRe: get parent and level of the xml node from XPathNavigator Pin
Mirko198019-Jul-11 4:58
Mirko198019-Jul-11 4:58 
GeneralRe: get parent and level of the xml node from XPathNavigator Pin
NarVish19-Jul-11 19:01
NarVish19-Jul-11 19:01 
QuestionC# Mysql query problem Pin
nighttrain_18-Jul-11 23:16
nighttrain_18-Jul-11 23:16 
AnswerRe: C# Mysql query problem Pin
Blue_Boy18-Jul-11 23:32
Blue_Boy18-Jul-11 23:32 
GeneralRe: C# Mysql query problem Pin
nighttrain_18-Jul-11 23:52
nighttrain_18-Jul-11 23:52 
SuggestionRe: C# Mysql query problem Pin
GuyThiebaut19-Jul-11 1:59
professionalGuyThiebaut19-Jul-11 1:59 
GeneralRe: C# Mysql query problem Pin
nighttrain_19-Jul-11 2:38
nighttrain_19-Jul-11 2:38 
GeneralRe: C# Mysql query problem Pin
GuyThiebaut19-Jul-11 3:05
professionalGuyThiebaut19-Jul-11 3:05 
AnswerRe: C# Mysql query problem Pin
PIEBALDconsult19-Jul-11 2:45
mvePIEBALDconsult19-Jul-11 2:45 
GeneralRe: C# Mysql query problem Pin
nighttrain_19-Jul-11 3:35
nighttrain_19-Jul-11 3:35 
AnswerRe: C# Mysql query problem [modified] Pin
BobJanova19-Jul-11 3:56
BobJanova19-Jul-11 3:56 
GeneralRe: C# Mysql query problem Pin
PIEBALDconsult19-Jul-11 14:22
mvePIEBALDconsult19-Jul-11 14:22 
GeneralRe: C# Mysql query problem Pin
BobJanova20-Jul-11 11:19
BobJanova20-Jul-11 11:19 
GeneralRe: C# Mysql query problem Pin
PIEBALDconsult20-Jul-11 14:18
mvePIEBALDconsult20-Jul-11 14:18 
GeneralRe: C# Mysql query problem Pin
BobJanova21-Jul-11 7:02
BobJanova21-Jul-11 7:02 
GeneralRe: C# Mysql query problem Pin
sugais19-Jul-11 20:51
sugais19-Jul-11 20:51 
GeneralRe: C# Mysql query problem [modified] Pin
nighttrain_20-Jul-11 5:43
nighttrain_20-Jul-11 5:43 
GeneralRe: C# Mysql query problem Pin
nighttrain_21-Jul-11 21:26
nighttrain_21-Jul-11 21:26 
QuestionHow to Finding Solutions Pin
Anubhava Dimri18-Jul-11 21:35
Anubhava Dimri18-Jul-11 21:35 
AnswerRe: How to Finding Solutions Pin
Blue_Boy18-Jul-11 22:02
Blue_Boy18-Jul-11 22:02 
Is this, what you are looking for?


string value="abc";
string result=string.Empty;

for(int i=0;i<=value.Length-1;i++)
{
   result+=value[i].ToString()+"\n";
}

for(int i=0;i<=value.Length-1;i++)
{
   if(i<value.Length-1)
   {
        result+=value[i].ToString()+value[i+1].ToString()+"\n";
   }
   else
   {
      result+=value[0].ToString()+value[value.Length-1].ToString()+"\n"+value;
   } 
}


I Love T-SQL
"VB.NET is developed with C#.NET"
If my post helps you kindly save my time by voting my post.

www.cacttus.com

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.