Results 1 to 6 of 6

Thread: [2005] DropDown List (Selecting item)

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2005
    Posts
    150

    [2005] DropDown List (Selecting item)

    I have a dropdownlist which has three items. When I select any item , I don't see what i have selected , in other words , the selected item doesn't appear in the combobox text!

    Does anyone know what might be wrong ?

  2. #2
    Frenzied Member stimbo's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,739

    Re: [2005] DropDown List (Selecting item)

    Do you have any code in the project relating to that combo box?

    If for example you had code that was inside the selectedIndexChanged event that set the index to -1 that could do it. Would be extremely dumb but thought I'd make a stab at it.

    Does it do it to any other combo boxes that you add to the form that have items in its collection?
    Stim

    Free VB.NET Book Chapter
    Visual Basic 2005 Cookbook Sample Chapter

  3. #3
    Junior Member
    Join Date
    Oct 2007
    Posts
    18

    Re: [2005] DropDown List (Selecting item)

    try setting the CausesValidation property of the control to False.

  4. #4
    Addicted Member
    Join Date
    Sep 2007
    Location
    Right behind you
    Posts
    170

    Re: [2005] DropDown List (Selecting item)

    i know this is stupid but, have you set the dropdownstyle of the combobox to only dropdown insted of dropdownlist, on the properties pane or in code?

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Aug 2005
    Posts
    150

    Re: [2005] DropDown List (Selecting item)

    winsrp , actually , it was dropdown and when I changed it to dropdownlist it worked.

    thanks alot

  6. #6
    Addicted Member
    Join Date
    Sep 2007
    Location
    Right behind you
    Posts
    170

    Re: [2005] DropDown List (Selecting item)

    most welcome, remeber to put your problem as solved dude.

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