There is a protected SendMessage call you can use for this purpose, so you have to derive from TextBox.
public class CustomTextBox : TextBox
{
private const int EM_XXXX = 0x1234;
public int LineIndex { get { return base.SendMessage( EM_XXXX, 0, 0 ); } }
}
Shawn Burke, Microsoft