Click here to Skip to main content
15,898,035 members
Home / Discussions / C#
   

C#

 
QuestionButton Color C# in WindowsCE Pin
trab0075-Mar-07 22:57
trab0075-Mar-07 22:57 
AnswerRe: Button Color C# in WindowsCE Pin
sam#5-Mar-07 23:15
sam#5-Mar-07 23:15 
GeneralRe: Button Color C# in WindowsCE Pin
trab0075-Mar-07 23:36
trab0075-Mar-07 23:36 
QuestionManipulating a string Pin
Ryno Burger5-Mar-07 22:35
Ryno Burger5-Mar-07 22:35 
AnswerRe: Manipulating a string [modified] Pin
Harini N K5-Mar-07 23:00
Harini N K5-Mar-07 23:00 
AnswerRe: Manipulating a string Pin
Guffa6-Mar-07 0:43
Guffa6-Mar-07 0:43 
AnswerRe: Manipulating a string Pin
Ryno Burger6-Mar-07 2:13
Ryno Burger6-Mar-07 2:13 
AnswerRe: Manipulating a string Pin
Keshav V. Kamat6-Mar-07 16:55
Keshav V. Kamat6-Mar-07 16:55 
Hi.

the following line looks for the character '-' in the string.
the flag checks whether it is true or not.
then it checks where the character is found, and the substrings are taken into other strings.

bool flag=false;

flag=sample.Contains("-");
if(flag==true)
{
int m=sample.IndexOf("-");
string s1 = sample.Substring(0, m); // s1 will contain Object1,Item1,Item2
sample = sample.Remove(0, m+1); // now the sample will contain
//Object2,Item1,Item2-Object3,Item1,Item2
}


Hence you can repeat the procedure to store the other substrings, maybe in a string arraylist.

i hope this helps.

keshav kamat
siemens india
AnswerRe: Manipulating a string Pin
Keshav V. Kamat6-Mar-07 17:00
Keshav V. Kamat6-Mar-07 17:00 
QuestionWord 2007 Ribbon Pin
nibelungster5-Mar-07 22:22
nibelungster5-Mar-07 22:22 
QuestionCan I Connect to an access DB remotely Pin
BraveShogun5-Mar-07 22:15
BraveShogun5-Mar-07 22:15 
AnswerRe: Can I Connect to an access DB remotely Pin
Eduard Keilholz6-Mar-07 2:06
Eduard Keilholz6-Mar-07 2:06 
QuestionRe: Can I Connect to an access DB remotely Pin
michael_jhons6-Mar-07 3:20
michael_jhons6-Mar-07 3:20 
Questionhow to code for windows login using C# Pin
Member 38880245-Mar-07 21:46
Member 38880245-Mar-07 21:46 
QuestionRe: how to code for windows login using C# Pin
Eduard Keilholz6-Mar-07 2:06
Eduard Keilholz6-Mar-07 2:06 
AnswerRe: how to code for windows login using C# Pin
Dave Kreskowiak6-Mar-07 3:00
mveDave Kreskowiak6-Mar-07 3:00 
Questionsetup for windows Pin
Muhammad Ashraf Nadeem5-Mar-07 21:40
Muhammad Ashraf Nadeem5-Mar-07 21:40 
Questionpanel transparency Pin
mihksoft5-Mar-07 21:38
mihksoft5-Mar-07 21:38 
AnswerRe: panel transparency Pin
sam#5-Mar-07 22:08
sam#5-Mar-07 22:08 
GeneralRe: panel transparency Pin
mihksoft5-Mar-07 22:11
mihksoft5-Mar-07 22:11 
GeneralRe: panel transparency Pin
sam#5-Mar-07 22:25
sam#5-Mar-07 22:25 
GeneralRe: panel transparency Pin
mihksoft5-Mar-07 22:35
mihksoft5-Mar-07 22:35 
GeneralRe: panel transparency Pin
sam#5-Mar-07 23:24
sam#5-Mar-07 23:24 
GeneralRe: panel transparency Pin
Dave Kreskowiak6-Mar-07 2:55
mveDave Kreskowiak6-Mar-07 2:55 
Questionparameters for webcontrol Pin
vamsimohan215-Mar-07 21:37
vamsimohan215-Mar-07 21:37 

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.