VB6 Listbox Column HELP!

Hey there,

I'm having littlebitty priblem with my listbox and the columns in it.

I can't get any columns in the listbox. I simply don't get it!, In the property's is columns - 2 but no results.

Can anyone post the sourcecode to put data in my columns ?

many thanx...

rcmarc

Comments

  • : Hey there,
    :
    : I'm having littlebitty priblem with my listbox and the columns in it.
    :
    : I can't get any columns in the listbox. I simply don't get it!, In the property's is columns - 2 but no results.
    :
    : Can anyone post the sourcecode to put data in my columns ?
    :
    : many thanx...
    :
    : rcmarc
    :
    From VB6 Help Menu under ListBox Control - Properties - Columns Property Example:

    Columns Property Example
    This example illustrates how the two different kinds of ListBox controls work when they contain the same data. To try this example, paste the code into the Declarations section of a form that contains two ListBox controls. Set the Columns property to 2 for List2, and then press F5 and click the form.

    Private Sub Form_Load ()
    Dim I ' Declare variable.
    List1.Move 50, 50, 2000, 1750 ' Arrange list boxes.
    List2.Move 2500, 50, 3000, 1750
    For I = 0 To Screen.FontCount -1 ' Fill both boxes with
    List1.AddItem Screen.Fonts(I) ' names of screen fonts.
    List2.AddItem Screen.Fonts(I)
    Next I
    End Sub


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion