List Box horizantal bar

  • Thread starter Thread starter Cor
  • Start date Start date
C

Cor

Hi Sir,

Where did you put your code?

If I put beneath code in the load form event it is working fine

I hope this helps?

Cor
 
hi,

the horizontal bar only will be enabled if there are items with a length that
requires the horizontal scrolling.
Try to add this item to your ListBox1:
ListBox1.Items.Add("Supercalifragilisticoespialidoso")

The horizontal scrollbar should be enabled.

--
Nos vemos.
Guillermo
--------------
P.S.
Si te parece últil mi sitio:
http://www.elguille.info/lonuevo/lo_nuevo0312.htm#dic30
--------------
Microsoft VB MVP desde 1997
Te invito a mi sitio dedicado al VB y más...
http://www.elguille.info/
http://www.mundoprogramacion.com/
(puede que el correo usado sea anti-spam)
 
* "QT said:
I am using following codes for listbox; When Vertical scrool bar is working,
horizontal scroll bar is not working.

I remember I already replied to the same question some days ago. The
scrollbar will only work if the items don't fit in the visible area of
the control (in horizontal direction).
 
Dear Sirs,

I am using following codes for listbox; When Vertical scrool bar is working,
horizontal scroll bar is not working.

What should I do?

'ListBox1

'

Me.ListBox1.HorizontalScrollbar = True

Me.ListBox1.Location = New System.Drawing.Point(16, 24)

Me.ListBox1.Name = "ListBox1"

Me.ListBox1.ScrollAlwaysVisible = True

Me.ListBox1.Size = New System.Draw
 
Back
Top