hi everyone,
i need a windows application in which i have a textbox.my application is to convert the string entered in to textbox into words
for ex if i have enntered greey 1984 in textbox i shud get
greeny
1984
iam confused with the usage of strings
need u r help
bye
.

Recommended Answers

All 5 Replies

hi,
some body reply to this message.

hi,
some body reply to this message.

is that ASP.NET???:-O

you need the very simple String.Split() method.
your string will be the textbox.text field and the delimiter will be a space. This returns an array of strings.
This is C# but VB is 95% identical

//I did this the long way for you to follow
char[] delimiter = new char[1] {' '}; //thats your space
string[] words = string.split(textbox.text, delimiter);
// you now have an array of words.

hi,
thanks for u r time

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.