Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - ComboBox ListIndex
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ComboBox ListIndex

 Post Reply Post Reply
Author
Message
soda View Drop Down
Newbie
Newbie


Joined: 08 March 2009
Location: Iran
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote soda Quote  Post ReplyReply Direct Link To This Post Topic: ComboBox ListIndex
    Posted: 08 March 2009 at 3:39pm
Hi friends.

i use combobox in a sample project with this info :

one combobox
one flatedit
one timer

and set combobox autocomplete =true
and then in the form_load :
combobox1.additem "11"
combobox1.additem "22"
combobox1.additem "33"
combobox1.additem "44"

ok
timer interval= 15000
and this code in timer1_timer :
msgbox combobox1.listindex

and run project , first focus on combobox . ok

type 2 from keyboard and then press tab . the combobox text change to 22 but after some seconds msgbox appears with listindex=-1 !!!!

why ?
thanks for help
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 09 March 2009 at 2:54am

Hi,

You have press Enter or remove Focus to update ListIndex.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
soda View Drop Down
Newbie
Newbie


Joined: 08 March 2009
Location: Iran
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote soda Quote  Post ReplyReply Direct Link To This Post Posted: 09 March 2009 at 3:20am
OK. thanks

i will test it .
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.