Microsoft Forms 2.0 Object Library Vb6

Private Sub UserForm_Initialize() ' Setup multi-column list With ListBox1 .ColumnCount = 3 .ColumnWidths = "50;150;50" .AddItem "101" .List(0, 1) = "Monitor" .List(0, 2) = "$150" .AddItem "102" .List(1, 1) = "Mouse" .List(1, 2) = "$25" End With SpinButton1.Min = 1 SpinButton1.Max = 10 TextBox1.Text = "1" End Sub

Use WithEvents and a collection to track controls. microsoft forms 2.0 object library vb6

ScrollBar works similarly but with Min , Max , SmallChange , LargeChange . 50" .AddItem "101" .List(0

Run the form – you can scroll vertically if the window is too short. 1) = "Monitor" .List(0

by Microsoft for production applications due to several risks: CodeGuru Forums Unstable in VB6:

However, for most new VB6 development, the + Windows Common Controls are more standard, better documented, and have wider community support.