Click here to Skip to main content
15,899,126 members
Home / Discussions / C#
   

C#

 
AnswerRe: Capture the Web Cam Video In LAN Network using C# Code Pin
Hristo-Bojilov10-Aug-09 2:06
Hristo-Bojilov10-Aug-09 2:06 
QuestionCalling a Form By selecting a date on the Month Callender Pin
Shocker0110-Aug-09 1:46
Shocker0110-Aug-09 1:46 
AnswerRe: Calling a Form By selecting a date on the Month Callender Pin
Ashfield10-Aug-09 9:36
Ashfield10-Aug-09 9:36 
QuestionInheritance Pin
p_196010-Aug-09 1:36
p_196010-Aug-09 1:36 
AnswerRe: Inheritance Pin
Pete O'Hanlon10-Aug-09 1:39
mvePete O'Hanlon10-Aug-09 1:39 
AnswerRe: Inheritance Pin
kstls10-Aug-09 1:41
kstls10-Aug-09 1:41 
AnswerRe: Inheritance Pin
Muhammad Mazhar10-Aug-09 2:04
Muhammad Mazhar10-Aug-09 2:04 
AnswerRe: Inheritance Pin
PIEBALDconsult10-Aug-09 6:24
mvePIEBALDconsult10-Aug-09 6:24 
Questiongenerate run time form IN MAIN(Mdi form) which can contain few other forms Pin
shaktisinh10-Aug-09 0:55
shaktisinh10-Aug-09 0:55 
AnswerRe: generate run time form IN MAIN(Mdi form) which can contain few other forms Pin
Muhammad Mazhar10-Aug-09 1:16
Muhammad Mazhar10-Aug-09 1:16 
GeneralRe: generate run time form IN MAIN(Mdi form) which can contain few other forms Pin
shaktisinh10-Aug-09 18:33
shaktisinh10-Aug-09 18:33 
GeneralRe: generate run time form IN MAIN(Mdi form) which can contain few other forms Pin
Muhammad Mazhar11-Aug-09 1:52
Muhammad Mazhar11-Aug-09 1:52 
AnswerRe: generate run time form IN MAIN(Mdi form) which can contain few other forms Pin
Dave Kreskowiak10-Aug-09 5:03
mveDave Kreskowiak10-Aug-09 5:03 
GeneralRe: generate run time form IN MAIN(Mdi form) which can contain few other forms Pin
shaktisinh10-Aug-09 18:02
shaktisinh10-Aug-09 18:02 
GeneralRe: generate run time form IN MAIN(Mdi form) which can contain few other forms Pin
Dave Kreskowiak10-Aug-09 18:23
mveDave Kreskowiak10-Aug-09 18:23 
GeneralRe: generate run time form IN MAIN(Mdi form) which can contain few other forms Pin
shaktisinh10-Aug-09 18:44
shaktisinh10-Aug-09 18:44 
GeneralRe: generate run time form IN MAIN(Mdi form) which can contain few other forms Pin
Dave Kreskowiak11-Aug-09 1:32
mveDave Kreskowiak11-Aug-09 1:32 
QuestionSplitting a string Pin
kanchoette10-Aug-09 0:32
kanchoette10-Aug-09 0:32 
AnswerRe: Splitting a string Pin
Moreno Airoldi10-Aug-09 0:43
Moreno Airoldi10-Aug-09 0:43 
AnswerRe: Splitting a string [modified] Pin
Jason Barry10-Aug-09 5:46
professionalJason Barry10-Aug-09 5:46 
If you need to split the text by a carriage return and/or space character, you can use the following code sample:

string words = notesTextBox.Text;
words = words.Replace("\r\n", " ");
string[] splitWords = words.Split(new char[] { ' ' });


This will replace all the carriage returns with spaces, then split the text at each space.

If you do what Moreno said and just add the '\r' and '\n' characters to the array, you will end up getting more split words in your array. You will have to try each way and see which best fits your needs.

string words = notesTextBox.Text;
string[] splitWords = words.Split(new char[] { ' ', '\r', '\n' });


modified on Monday, August 10, 2009 11:55 AM

QuestionHow to Create a Project run on Windows Startup using C#.Net Pin
vasanth arivali10-Aug-09 0:02
vasanth arivali10-Aug-09 0:02 
AnswerRe: How to Create a Project run on Windows Startup using C#.Net Pin
Laserson10-Aug-09 0:06
Laserson10-Aug-09 0:06 
GeneralRe: How to Create a Project run on Windows Startup using C#.Net Pin
Muhammad Mazhar10-Aug-09 1:27
Muhammad Mazhar10-Aug-09 1:27 
GeneralRe: How to Create a Project run on Windows Startup using C#.Net Pin
senguptaamlan10-Aug-09 23:01
senguptaamlan10-Aug-09 23:01 
GeneralRe: How to Create a Project run on Windows Startup using C#.Net Pin
Muhammad Mazhar11-Aug-09 1:53
Muhammad Mazhar11-Aug-09 1:53 

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.