There is a protected SendMessage call you can use for this purpose, so you have to derive from TextBox.
public MyTextBox : TextBox
{
private const int EM_XXXX = 0x1234;
public int LineIndex
{
get
{
return base.SendMessage(EM_XXXX, 0, 0);
}
}
}
(from sburke_online@microsoft..nospam..com on microsoft.public.dotnet.framework.windowsforms)
Share with