Dear All,

I have textbox in my form .. I enter the student name in the text e.x
(vbstudent)

I want to sign textbox data to array, each letter in one index.

ex
array(0)=a
array(1)=l
array(2)=f
array(3)=r
array(4)=e
array(5)=d
array(6)=o

How can I do that .. please reply me soon.

Thanks for your cooperation

Dim ch(TextBox1.Text.Count) As Char

For i As Integer = 0 To TextBox1.Text.Count - 1
    ch(i) = TextBox1.Text.Chars(i)
Next

or:

Dim letters As Char() = textBox1.Text.ToCharArray()
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.