"David" <gr****@orbitco ms.com> wrote in message
news:uq******** *****@TK2MSFTNG P12.phx.gbl...
Chris,
Chars does not seem to be a member of textbox. I can only see a chars
member under textbox.text.ch ars but this is read only.
Can you explain how I write to the character location?
Thanks
Regards
David
--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
You could also create one textbox with the multiline property set to true,
then access the Lines array (e.g., MyTextBox.Lines (1) would give you the
second line of text). You can then use the various string manipulation
functions to insert and retrieve characters at specific locations within
each line.
The following is from the Visual Studio 2003 MSDN Library:
Public Sub ViewMyTextBoxCo ntents()
Dim counter as Integer
'Create a string array and store the contents of the Lines property.
Dim tempArray() as String
tempArray = textBox1.Lines
'Loop through the array and send the contents of the array to debug
window.
For counter = 0 to tempArray.GetUp perBound(0)
System.Diagnost ics.Debug.Write Line( tempArray(count er) )
Next
End Sub
Dave