Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i ve problem in changing the properties of customize text box. i made an customize text box now i want to change its length vertically by default its vertical length is 3510 and it starting word wraping aftr this i want to give it length by my own self coding but no idea how to code to give vertical length in customize text box in c#


plzzzz help me about this issue
Posted
Comments
Sergey Alexandrovich Kryukov 21-Jun-11 16:49pm    
It depends on what do you want to achieve. Wrapping is meaningful only for a user, not for the code. Also, it looks like an abuse of text box. Why suck long lines?
--SA

The textbox has a length property, doesn't it ? Or is that not what you mean ? Is your issue measuring the position of the text entered ? You can use a Graphics object and the MEasureString method to do that.
 
Share this answer
 
Comments
version_2.0 22-Jun-11 7:56am    
But MeasureString method is not accurate...
If you are inheriting from TextBox then you should have a MultiLine property, which, if set to true, would allow you to set the height (i take it vertical width means height) of the control.

Hope this helps
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900