tags:

views:

8

answers:

0

I need to display a long string in TextArea in the form of two columns. Say 20 character of the string in left side and then some space and then 20 character on right side of TextArea. At next line again i am doing same thing till my string is complete.

But what is happening is like at right column all rows are not alingned exactly. this is happening because each character has different pixel width so alignment of right column depends on character printed on left column. if on left column characters are like 'iiii' then second coumn row starts a bit early in textarea and if on left column, characters are like 'MMMMMM' then second coumn row starts a bit late.

I am using tag for text formatting into this string.

Thanks in advance,

Amit Pathak