For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > January 2006 > Re: Comboboxes and Listboxes - Deciding Between Them









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Comboboxes and Listboxes - Deciding Between Them
Bookreader

2006-01-27, 3:55 am

On Fri, 27 Jan 2006 04:28:37 GMT, Bookreader <bookreader127@yahoo.com>
wrote:

>I have been playing around with listboxes and comboboxes trying to
>figure something out.
>
>Please correct me where I am wrong. Some things I thought were true
>may not be.
>
>I always thought that comboboxes were inherited from listboxes.
>Therefore, I thought that comboboxes would have all the properties and
>methods of listboxes.
>
>The current case is that I have a list of items of which the user is
>only allowed to pick one.
>
>In a listbox, I can set the MultiSelect Property to '0' (none) and
>then show the item selected by simply:
>
> MsgBox lstFamilies.List(lstFamilies.ListIndex)
>
>This will show me which item was selected.
>
>On the other hand, I like the combo box. Here, I can get it with the
>ComboBox.Text method.
>
>Is the combobox not a descendant of the listbox?
>
>It's not a real big deal, but it has me wondering.
>
>Thanks.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com