Skip to main content

[archive] List Box: pre-select line

  • July 15, 2008
  • 5 replies
  • 0 views

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 14 July 2008]

Looking to program what line is pre-selected/highlighted in a list box. Tried the book. That didn't work.

Thanks

5 replies

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 14 July 2008]

Looking to program what line is pre-selected/highlighted in a list box. Tried the book. That didn't work.

Thanks
You must set selection-index to the line you require.

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 14 July 2008]

Looking to program what line is pre-selected/highlighted in a list box. Tried the book. That didn't work.

Thanks
Thanks.
That worked.
maybe in another year, I will know enough to have more challenging questions.

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 14 July 2008]

Looking to program what line is pre-selected/highlighted in a list box. Tried the book. That didn't work.

Thanks
As long as I have you on the line....
is there ( and I don't think so ) any way in a list box to change/set the font of a single line within a multi-line list box? I would like to have a bolded heading for each grouping within the list box. Ex: Bathroom, Kitchen etc.. and the products below.

thanks

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 14 July 2008]

Looking to program what line is pre-selected/highlighted in a list box. Tried the book. That didn't work.

Thanks
As long as I have you on the line....
is there ( and I don't think so ) any way in a list box to change/set the font of a single line within a multi-line list box? I would like to have a bolded heading for each grouping within the list box. Ex: Bathroom, Kitchen etc.. and the products below.

thanks

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 14 July 2008]

Looking to program what line is pre-selected/highlighted in a list box. Tried the book. That didn't work.

Thanks
no the list box will not let you do that. Given the description of what you are trying to do, you might want to think about using a tree view rather than the list box, as this will allow you the hierarchichal aspect you seem to suggest