Click here to Skip to main content
15,888,461 members
Home / Discussions / C#
   

C#

 
QuestionFinding out file(s) being used by a process Pin
andrei_ciobanu21-Mar-09 5:21
andrei_ciobanu21-Mar-09 5:21 
AnswerRe: Finding out file(s) being used by a process Pin
Giorgi Dalakishvili21-Mar-09 6:28
mentorGiorgi Dalakishvili21-Mar-09 6:28 
GeneralRe: Finding out file(s) being used by a process Pin
andrei_ciobanu23-Mar-09 8:31
andrei_ciobanu23-Mar-09 8:31 
QuestionFilling gridview with multiple combobox Pin
haroon198021-Mar-09 5:13
haroon198021-Mar-09 5:13 
QuestionLittle help with string and converting it to uppercase or lowercase [modified] Pin
maxflair21-Mar-09 3:32
maxflair21-Mar-09 3:32 
AnswerRe: Little help with string and converting it to uppercase or lowercase Pin
harold aptroot21-Mar-09 3:44
harold aptroot21-Mar-09 3:44 
GeneralRe: Little help with string and converting it to uppercase or lowercase Pin
maxflair21-Mar-09 4:08
maxflair21-Mar-09 4:08 
GeneralRe: Little help with string and converting it to uppercase or lowercase Pin
fly90421-Mar-09 4:20
fly90421-Mar-09 4:20 
Try this.

string openTag = "<upcase>", closeTag = "</upcase>";

string str = "We are living in a <upcase>yellow submarine</upcase>.";

int startIndex = str.IndexOf(openTag);
int endIndex = str.IndexOf(closeTag) + closeTag.Length;

string subStr = str.Substring(startIndex, (endIndex - startIndex));

subStr = subStr.Replace(openTag, "");
subStr = subStr.Replace(closeTag, "");

subStr = subStr.ToUpper();

str = str.Remove(startIndex, (endIndex - startIndex));

str = str.Insert(startIndex, subStr);


hmmm pie

GeneralRe: Little help with string and converting it to uppercase or lowercase Pin
maxflair21-Mar-09 4:32
maxflair21-Mar-09 4:32 
GeneralRe: Little help with string and converting it to uppercase or lowercase Pin
fly90421-Mar-09 4:38
fly90421-Mar-09 4:38 
GeneralRe: Little help with string and converting it to uppercase or lowercase Pin
maxflair21-Mar-09 5:46
maxflair21-Mar-09 5:46 
GeneralRe: Little help with string and converting it to uppercase or lowercase Pin
Yusuf21-Mar-09 4:34
Yusuf21-Mar-09 4:34 
GeneralRe: Little help with string and converting it to uppercase or lowercase Pin
harold aptroot21-Mar-09 4:23
harold aptroot21-Mar-09 4:23 
AnswerRe: Little help with string and converting it to uppercase or lowercase Pin
Yusuf21-Mar-09 4:33
Yusuf21-Mar-09 4:33 
GeneralRe: Little help with string and converting it to uppercase or lowercase Pin
maxflair21-Mar-09 5:47
maxflair21-Mar-09 5:47 
AnswerRe: Little help with string and converting it to uppercase or lowercase Pin
maxflair21-Mar-09 6:40
maxflair21-Mar-09 6:40 
QuestionBorland C DLL in C#.NET Pin
dataminers21-Mar-09 3:28
dataminers21-Mar-09 3:28 
AnswerRe: Borland C DLL in C#.NET Pin
harold aptroot21-Mar-09 3:43
harold aptroot21-Mar-09 3:43 
GeneralRe: Borland C DLL in C#.NET Pin
dataminers21-Mar-09 3:48
dataminers21-Mar-09 3:48 
AnswerRe: Borland C DLL in C#.NET Pin
Ravi Mori21-Mar-09 3:46
Ravi Mori21-Mar-09 3:46 
GeneralRe: Borland C DLL in C#.NET Pin
dataminers21-Mar-09 3:51
dataminers21-Mar-09 3:51 
GeneralRe: Borland C DLL in C#.NET Pin
Ravi Mori21-Mar-09 4:13
Ravi Mori21-Mar-09 4:13 
AnswerRe: Borland C DLL in C#.NET Pin
Xmen Real 21-Mar-09 4:11
professional Xmen Real 21-Mar-09 4:11 
GeneralRe: Borland C DLL in C#.NET Pin
dataminers21-Mar-09 5:06
dataminers21-Mar-09 5:06 
GeneralRe: Borland C DLL in C#.NET Pin
Ravadre21-Mar-09 6:23
Ravadre21-Mar-09 6:23 

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.