AddEvent with ComboBox

Discussion in 'Questions (Windows Mobile)' started by erik58, May 24, 2008.

  1. erik58

    erik58 New Member Licensed User

    It seems AddEvent not to work properly in conjunction with ComboBox.
    I have created 1Form with 1 ComboBox, where the ComboBox contains 3 data items at design time.
    Selecting one data item from the ComboBox doesn't trigger the designated "tstsub"

    Anyone an idea whether this is a bug of whether I am overlooking something?

    Sub App_Start
    Form1.Show
    AddEvent("cmbBox",SelectionChanged,"tstsub")
    End Sub

    Sub tstsub
    Msgbox("sub","DEBUG")
    End Sub
     
  2. taximania

    taximania Well-Known Member Licensed User

    selectionchanged has 2 paramaters :)

    Sub tstsub(index,value)
    Msgbox("sub","DEBUG")
    End Sub
     
  3. erik58

    erik58 New Member Licensed User

    Thanks for waking me up!
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice