ComboBox with Style set as DropDown List: Problem. 
Author Message
 ComboBox with Style set as DropDown List: Problem.

When you set the .Style property for a ComboBox to 2-DropDown List, the .Text
property becomes read-only.  Is there any way to manipulate the Text area of
the Combo Box without the user physically selecting an item from the Combo
Box's list?.  Say for example, I wanted to start one of the items off as a
default.   Thanks.

Sean



Tue, 19 Aug 1997 11:47:11 GMT  
 ComboBox with Style set as DropDown List: Problem.

Quote:

>When you set the .Style property for a ComboBox to 2-DropDown List, the .Text
>property becomes read-only.  Is there any way to manipulate the Text area of
>the Combo Box without the user physically selecting an item from the Combo
>Box's list?.  Say for example, I wanted to start one of the items off as a
>default.   Thanks.

If the default item was #3, you'd say ComboBox.Listindex = 3.
--
Adina Adler            

My opinions, and        
nothing but            



Sat, 23 Aug 1997 00:22:54 GMT  
 ComboBox with Style set as DropDown List: Problem.

Quote:


>Subject: Re: ComboBox with Style set as DropDown List: Problem.
>Date: 6 Mar 1995 16:22:54 GMT

>>When you set the .Style property for a ComboBox to 2-DropDown List, the .Text
>>property becomes read-only.  Is there any way to manipulate the Text area of
>>the Combo Box without the user physically selecting an item from the Combo
>>Box's list?.  Say for example, I wanted to start one of the items off as a
>>default.   Thanks.
>If the default item was #3, you'd say ComboBox.Listindex = 3.

You mean 2. The list is zero based.

------------------------------------------------------------------------
Chuck Stuart - Mesquite TX USA  
VBTrace 2.00 is a runtime Procedure Trace/XReference/Debug/Profiler and
much more tool for VB and is now in beta. Download beta version 2.00.12
from ftp.apexsc.com/pub/cgvb/visitor.
------------------------------------------------------------------------



Sat, 23 Aug 1997 01:34:28 GMT  
 ComboBox with Style set as DropDown List: Problem.

: When you set the .Style property for a ComboBox to 2-DropDown List, the .Text
: property becomes read-only.  Is there any way to manipulate the Text area of
: the Combo Box without the user physically selecting an item from the Combo
: Box's list?.  Say for example, I wanted to start one of the items off as a
: default.   Thanks.

Try Combo1.ListIndex=0
where 0 will default the Text to the First item on the Combo Box List. HTH.

Regards,
SG KHOO



Sun, 24 Aug 1997 10:49:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. VB6: ComboBox with .Style Dropdown List not maintaining .ListIndex setting

2. Newbie: Set a combo box style(2)/Dropdown list to the first element in the list

3. Newbie: Set a combo box style(2)/Dropdown list to the first element in the list

4. Newbie: Set a combo box style(2)/Dropdown list to the first element in the list

5. Combobox (Dropdown List: Style=2)

6. Checkmark in Dropdown List Style Combobox

7. ComboBox - Dropdown List Style

8. Dynamically creating combobox with Style=2 - Dropdown List?

9. ComboBox (Style -> Dropdown List) Change() event

10. ComboBox - Style 2 - Dropdown List

11. ComboBox: Style(2 - DropDown List), change value?

12. Setting # of Items in ComboBox DropDown List

 

 
Powered by phpBB® Forum Software