views:

332

answers:

0

I'm looking for a WinForms .NET control that behaves exactly like the WinForms TextBox control in multi-line mode, but instead of the text being anchored to the top of the text box, I would like the text to be aligned in the middle - vertically. So, just like there is a TextBox.TextAlign property that takes Left|Right|Center, I'd want a similar effect in a property called TextBox.TextAlignVertical that would take Top|Bottom|Middle. (Not talking about orientating the text vertically, in case there is any confusion.)

Thoughts on scrollbars: When the text overflows the area vertically and a vertical scrollbar appears (if enabled), the TextBox would then naturally behave like a normal TextBox WRT scrolling -- as there would be no more whitespace to base a vertical center on. Horizontal scrolling would not need any special casing for this type of TextBox.

Anyone have any suggestions on how I could accomplish this?