Hi Dmitry,
This should do it:
MyTextBox.Style.Add("overflow", "hidden");
>I need to show a long text (error message) in a textbox (set to readonly .t.) but I don't want to show the scroll bar.
>
>Is it possible? I can't find a property in the property sheet that controls if scroll bar is displayed.
>
>Thank you.
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi