PDA

Click to See Complete Forum and Search --> : Listbox


Quizzarex
Jan 19th, 2000, 06:42 AM
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 :o)

ICQ: 60064288
E-Mail: Quizzarex@x-stream.dk

HarryW
Jan 19th, 2000, 06:50 AM
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).]

Quizzarex
Jan 19th, 2000, 07:11 AM
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 :o)

ICQ: 60064288
E-Mail: Quizzarex@x-stream.dk

HarryW
Jan 19th, 2000, 07:17 AM
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.

Quizzarex
Jan 19th, 2000, 07:33 AM
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 :o)

ICQ: 60064288
E-Mail: Quizzarex@x-stream.dk