Combobox and Listbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vidz
    New Member
    • Jan 2008
    • 2

    Combobox and Listbox

    Please help me to have code on how to compare the selected value in combobox and the item in listbox.

    Please have a code with this algorithm.

    if the selected value or item of combobox7 is equal to contain items or text of listbox1, The message box will appear and tell it that conflict encountered.

    Thank you..
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    1.select the item form combobox.
    2.capture the item
    3.find out the total number of items in listbox.
    4.compare the item with each item in listbox in a loop
    5.display the message as per result of Step #4

    Comment

    • shweta123
      Recognized Expert Contributor
      • Nov 2006
      • 692

      #3
      Hi,

      Which platform are you using?

      You can try like this :

      ListBox1.Items. FindByText(Drop DownList1.Selec tedItem.Text)

      Comment

      Working...