Click here to Skip to main content
15,868,016 members
Home / Discussions / C#
   

C#

 
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 
QuestionHow to make my application into an EXE in .NET Pin
vasanth arivali9-Aug-09 23:56
vasanth arivali9-Aug-09 23:56 
AnswerRe: How to make my application into an EXE in .NET Pin
stancrm9-Aug-09 23:57
stancrm9-Aug-09 23:57 
AnswerRe: How to make my application into an EXE in .NET Pin
Hristo-Bojilov10-Aug-09 0:20
Hristo-Bojilov10-Aug-09 0:20 
AnswerRe: How to make my application into an EXE in .NET Pin
senguptaamlan10-Aug-09 23:02
senguptaamlan10-Aug-09 23:02 
GeneralRe: How to make my application into an EXE in .NET Pin
vasanth arivali11-Aug-09 0:18
vasanth arivali11-Aug-09 0:18 
GeneralRe: How to make my application into an EXE in .NET Pin
senguptaamlan11-Aug-09 0:22
senguptaamlan11-Aug-09 0:22 
QuestionProblem to connect to mysql via c#. Pin
hdv2129-Aug-09 23:50
hdv2129-Aug-09 23:50 
AnswerRe: Problem to connect to mysql via c#. Pin
stancrm9-Aug-09 23:55
stancrm9-Aug-09 23:55 
AnswerRe: Problem to connect to mysql via c#. Pin
senguptaamlan11-Aug-09 1:06
senguptaamlan11-Aug-09 1:06 
QuestionUsing 'Like' in DataTable select query Pin
kanchoette9-Aug-09 23:47
kanchoette9-Aug-09 23:47 
AnswerRe: Using 'Like' in DataTable select query Pin
Luc Pattyn9-Aug-09 23:55
sitebuilderLuc Pattyn9-Aug-09 23:55 
GeneralRe: Using 'Like' in DataTable select query Pin
kanchoette10-Aug-09 0:12
kanchoette10-Aug-09 0:12 

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.