Results 1 to 2 of 2

Thread: Selecting a default index in combobox?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2001
    Location
    Maumelle, AR
    Posts
    624

    Selecting a default index in combobox?

    Ok, i have a combobox with 3 items. It is is dropdownlist mode. Everytime my app loads it is blank until I select something. I want to set it = to one of the three items by default, but I can't do.

    Combo1.index=1

    How can I do this?

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091

    Re: Selecting a default index in combobox?

    Originally posted by hipopony66
    Combo1.index=1
    The Index property is only valid if the control is part of a control array.

    Try

    VB Code:
    1. Combo1.[b]List[/b]Index = 1

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

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