>Are you sure you mean Textbox and not an EditBox?
Hi, Naomi
In my real situation I am prefering to use ListBox(no EditBox) because ListBox have AutoHideScrollbar porperty that I want to use. EditBox don't have AutoHideScrollbar property.
So I need to insert text string in ListBox and if the text is greater than ListBox.Width, I need to insert into new line.
Something like this:
Local liIndex as Integer, lsText as String
lsText = "some string text that can be greater than ListBox.Width"
liIndex = 1
Do while liIndex <= Len(lsText)
myListBox.AddListItem(Substr(lsText, liIndex, myListBox.Width), myListBox.ListCount + 1)
liIndex = liIndex + myListBox.Width
EndDo