المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : multine textbox maxlenght depending of height and widht control



C# Programming
05-10-2009, 06:40 PM
Hi people!

I don´t know how make a functionality to write text in a multiline richtext o multiline textbox, and set maxlenght property depending of width and height of the control. ( the control take diferent sizes in runtime ).

I´m using MeasureString method of System.Drawing.Graphics, but I don´t know if is the correct way.

Somebody know something ,please?

I home your help,
best regards.


PS: sorry for my english http://www.barakasoft.com/script/Forums/Images/smiley_smile.gif