Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Textbox Multiline Maxlength Wrap

Status
Not open for further replies.

antvon

Programmer
Dec 2, 2002
45
Hi all

I would like to know if its possible to make
a multiline textbox wrap to a set length on
each line.

I know that u can use the maxlength property
to set the length for the entire control and
that the wrap property can be use to wrap when
the text gets to the control border.

If I use maxlength then it only works for the
whole control and not each line.
If I use wrap then won't the the number of
characters be effected by the users font settings
and thus vary from font size to font size.

I would basically like to read the textbox lines
and populate a field in a table that is only 45
chars in size.Each line would be a new record.

Perhapes I'm looking at it the wrong why but can't
think of a better way or control to use.

Any advice would be appreciated.

Thanks in advance

Anton

 
You may want to look into using a different control. Since you are looking at data and each record is going to be 45 characters, maybe a list box would better suit your needs. Or if you need editing abilities, a Data Grid.

-Rick

VB.Net Forum forum796 forum855 ASP.NET Forum
[monkey]I believe in killer coding ninja monkeys.[monkey]
 
Hi Rick

Firstly my most humble apologies for not posting a reply
sooner. I have regrettably assigned to a client for the last to weeks at their premises.

Secondly, thanks for your reply. I am still looking into the two controls you mentioned.

Thanks again.

Anton
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top