Print Page | Close Window

ComboBox ListIndex

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=13611
Printed Date: 22 November 2024 at 5:58pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ComboBox ListIndex
Posted By: soda
Subject: ComboBox ListIndex
Date 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



Replies:
Posted By: Oleg
Date Posted: 09 March 2009 at 2:54am

Hi,

You have press Enter or remove Focus to update ListIndex.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: soda
Date Posted: 09 March 2009 at 3:20am
OK. thanks

i will test it .



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net