Scroll Bars in VB.NET

Associate
Joined
6 Dec 2007
Posts
2,103
Hi, in my program I have a text box that is supposed to have a vertical scroll bar and a horizontal scroll bar, but I can't get them to show.

I have definitely enabled them in the properties of the text box, and I have tried the code txtTextBox.ScrollBars = 3 to get them to show.

Have I missed something or is VS2005 kaput?

Thanks in advance :)
 
You've definitely got the textbox set to multiline?

Also, don't set the .Scrollbars property to 3, it uses an enum for a reason - set it to ScrollBars.Both
 
Back
Top Bottom