Click here to Skip to main content
15,887,449 members
Home / Discussions / C#
   

C#

 
QuestionC# NETWORKING PROBLEM Pin
teddy110-May-09 20:46
teddy110-May-09 20:46 
AnswerRe: C# NETWORKING PROBLEM Pin
Dave Kreskowiak11-May-09 5:01
mveDave Kreskowiak11-May-09 5:01 
AnswerRe: C# NETWORKING PROBLEM Pin
Larryville12-May-09 4:09
Larryville12-May-09 4:09 
QuestionSeperate one string into 2 Pin
KIDYA10-May-09 20:45
KIDYA10-May-09 20:45 
AnswerRe: Seperate one string into 2 Pin
Anubhava Dimri10-May-09 21:06
Anubhava Dimri10-May-09 21:06 
GeneralRe: Seperate one string into 2 Pin
KIDYA10-May-09 21:25
KIDYA10-May-09 21:25 
GeneralRe: Seperate one string into 2 Pin
Anubhava Dimri10-May-09 21:40
Anubhava Dimri10-May-09 21:40 
AnswerRe: Seperate one string into 2 Pin
OriginalGriff10-May-09 21:46
mveOriginalGriff10-May-09 21:46 
Or better:
{
string s = "String85";
string s1 = "";         // To prevent "unasigned variable" error
string s2 = "";
int posn = s.IndexOfAny("0123456789".ToCharArray());
if (posn >= 0)
    {
    s1 = s.Substring(0,posn);
    s2 = s.Substring(posn);
    }
MessageBox.Show(string.Format("\"{0}\" \"{1}\"", s1, s2));
}

You could do the digit finding with a Regex, but this example is just to be obvious!

No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.

This message is made of fully recyclable Zeros and Ones

GeneralRe: Seperate one string into 2 Pin
KIDYA10-May-09 23:05
KIDYA10-May-09 23:05 
QuestionProgress Bar Pin
S K Y10-May-09 16:02
S K Y10-May-09 16:02 
AnswerRe: Progress Bar Pin
N a v a n e e t h10-May-09 16:25
N a v a n e e t h10-May-09 16:25 
GeneralRe: Progress Bar Pin
S K Y10-May-09 16:39
S K Y10-May-09 16:39 
GeneralRe: Progress Bar Pin
N a v a n e e t h10-May-09 17:21
N a v a n e e t h10-May-09 17:21 
QuestionRead Sql Server Message from C# Pin
I Believe In GOD10-May-09 13:53
I Believe In GOD10-May-09 13:53 
AnswerRe: Read Sql Server Message from C# Pin
Luc Pattyn10-May-09 14:28
sitebuilderLuc Pattyn10-May-09 14:28 
GeneralRe: Read Sql Server Message from C# Pin
N a v a n e e t h10-May-09 16:30
N a v a n e e t h10-May-09 16:30 
GeneralRe: Read Sql Server Message from C# Pin
Luc Pattyn10-May-09 17:34
sitebuilderLuc Pattyn10-May-09 17:34 
AnswerRe: Read Sql Server Message from C# Pin
N a v a n e e t h10-May-09 16:27
N a v a n e e t h10-May-09 16:27 
AnswerRe: Read Sql Server Message from C# Pin
I Believe In GOD26-May-09 14:26
I Believe In GOD26-May-09 14:26 
QuestionError when creating new C# project Pin
Alan Burkhart10-May-09 13:19
Alan Burkhart10-May-09 13:19 
AnswerRe: Error when creating new C# project Pin
Luc Pattyn10-May-09 13:27
sitebuilderLuc Pattyn10-May-09 13:27 
GeneralRe: Error when creating new C# project Pin
Alan Burkhart10-May-09 16:32
Alan Burkhart10-May-09 16:32 
AnswerRe: Error when creating new C# project Pin
Anubhava Dimri10-May-09 20:07
Anubhava Dimri10-May-09 20:07 
GeneralRe: Error when creating new C# project Pin
Alan Burkhart11-May-09 2:55
Alan Burkhart11-May-09 2:55 
QuestionHow to know if my database update was done ? Pin
Yanshof10-May-09 9:46
Yanshof10-May-09 9:46 

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.