Hi Christian,
I am uploading the sample that I have created.I could get this done with a simplified logic than the earlier one.And below is the code that I have used.
private Syncfusion.Windows.Forms.Tools.TextBoxExt textBoxExt1;
private int len=0;
private void textBoxExt1_TextChanged(object sender, System.EventArgs e)
{
string[] texta = this.textBoxExt1.Text.Split( "".ToCharArray() );
int index = texta.Length;
for ( int i = 0; i <= index-1; i++ )
{
len=len + texta[ i ].Length;
Console.WriteLine (len );
if(len >= this.textBoxExt1.Bounds.Width )
{
this.textBoxExt1.ScrollBars = ScrollBars.Vertical ;
}
else
{
this.textBoxExt1.ScrollBars =ScrollBars.None ;
}
}
}
So far this worked well with my TextBoxExt.However please let me know if you have any difficulties.
sample
Regards,
Anu.