Results 1 to 5 of 5

Thread: ComboBox

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 1999
    Location
    Ireland
    Posts
    96

    Post

    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.

  2. #2
    New Member
    Join Date
    Nov 1999
    Posts
    9

    Post

    To chose something form the list you have to use Combo1.List(<some index> )
    In you case this would be Combo1.List(MyValue)

  3. #3
    New Member
    Join Date
    Nov 1999
    Posts
    9

    Post

    in case this was DropDownList style.
    If style is DrowDownCombo then you can select item through code like Combo1.Text = Combo1.List(MyValue)

    hpet

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jun 1999
    Location
    Ireland
    Posts
    96

    Post

    SORRY!!!

    My Mistake, tried to set the index into the list before populating the list into the ComboBox.

    Stupid! Stupid! Stupid!

    Thanks anyway,

    Steve.

  5. #5
    New Member
    Join Date
    Nov 1999
    Posts
    9

    Post

    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
  •  



Click Here to Expand Forum to Full Width