|
-
Nov 9th, 1999, 12:41 PM
#1
Thread Starter
Lively Member
I save the combo1.ListIndex to an array ...
Later I need to recall this value, and set the combobox back to it's previously selected object in the list.
I tried
combo1.ListIndex(MyValue)
combo1.ListIndex = (MyValue)
combo1.ListIndex = MyValue
None work, what am I doing wrong??????
Steve.
-
Nov 9th, 1999, 01:43 PM
#2
New Member
To chose something form the list you have to use Combo1.List(<some index> )
In you case this would be Combo1.List(MyValue)
-
Nov 9th, 1999, 01:46 PM
#3
New Member
in case this was DropDownList style.
If style is DrowDownCombo then you can select item through code like Combo1.Text = Combo1.List(MyValue)
hpet
-
Nov 9th, 1999, 01:47 PM
#4
Thread Starter
Lively Member
SORRY!!!
My Mistake, tried to set the index into the list before populating the list into the ComboBox.
Stupid! Stupid! Stupid!
Thanks anyway,
Steve.
-
Nov 9th, 1999, 01:49 PM
#5
New Member
sorry, I didn't say right (too early here to think clearly).
You always assign no mather what style.
Combo1.Text=Combo1.List(MyValue)
Ignore upper two posts.
hpet
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|