#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2009
    Posts
    77
    Rep Power
    6

    Control Selected Item on dblookupListBox


    How do I control which Item is selecte in a dblookuplistbox. I want on my form hide to make the listbox select nothing. Currently when I click an item it highlights it but when I hid the form I do not want the listbox to still have that selected item highlighten
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2012
    Posts
    151
    Rep Power
    3
    I don't know it for sure (but you can easily test it), but I think you "clear" the selected item in dbLookupListbox by clearing the field connected to it through its DataSource and DataField properties. I.e. by null-ing the field's value. Of course your dataset must allow the field to be null-ed.

IMN logo majestic logo threadwatch logo seochat tools logo