Question : Is there a way to get rid of the faint scroll bar when there is not enough items in a ListBox?

Hi, I'm using VS2008, .net 3.5 and C#.  I'm following a book to learn ASP.Net and in it, the listbox doesn't have scroll bar but when I use it in my program it shows a grey out scroll bar on the right when there is not enough items in the listbox for it to need a scroll bar.  Nothing I can see in the properties to get rid of this.  Is there a way to get rid of it when there isn't enough items?  In widows appl development, I think it only adds the scroll bar when there are enough items to be scrolled.

Answer : Is there a way to get rid of the faint scroll bar when there is not enough items in a ListBox?

Replace "txtTrainSessionNo" in this string with "cmbTrainSessionNo", i.e. to the name of Combobox.

Alex
Random Solutions  
 
programming4us programming4us