Results 1 to 5 of 5

Thread: Listbox

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    Denmark
    Posts
    4

    Post

    Hi!!

    I have a problem....

    I want to make multilines in an item in a listbox....

    Can I do that and how???


    ------------------
    Greetings Quizzarex Stargaze )

    ICQ: 60064288
    E-Mail: [email protected]


  2. #2
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827

    Post

    want to make an item span lines? Why don't you just put 3 additem methods in your loop? Like this:

    Data1.Recordset.MoveFirst
    Do until EOF
    list1.additem x 'first line
    list1.additem y 'second line
    list1.additem z 'third line
    Data1.Recordset.MoveNext
    Loop

    You might want to add a separator line or something, made of hyphens or underscores.

    Have I missed the point? I hate when I do that...

    [This message has been edited by HarryW (edited 01-19-2000).]

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    Denmark
    Posts
    4

    Post

    To HarryW and who there read this:

    That was my solution, but the problem is when I want to mark one I Forexampel:

    1
    2
    3

    It only mark the one i ckick at and i cannot find a way to mark all the item there are related and i do not want to separate each "multiitem"... Of course it is the easiest way to do it.

    But thanks anyway :

    Another problem is that i want separate the each "multiitem" color For exampel by gray and White...

    Can I Do That???


    ------------------
    Greetings Quizzarex Stargaze )

    ICQ: 60064288
    E-Mail: [email protected]


  4. #4
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827

    Post

    I've done the multiline thing before, but I wasn't so fussy. I just had it so that you chose one line out of the three, and that was enough to select a record.

  5. #5

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    Denmark
    Posts
    4

    Post

    To HarryW:

    I do not use the list in a database, the list is i use in a program and it cannot be modified, i could make a code that says when i click here the listbox select that that and that... and so on
    but it is a bad way to do it and u get a very long code...

    And if i need to update the program i maybe have to modify alot of code

    But Thanks Anyway

    ------------------
    Greetings Quizzarex Stargaze )

    ICQ: 60064288
    E-Mail: [email protected]


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width