Print Page | Close Window

Combobox lose ListIndex

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=11024
Printed Date: 16 November 2024 at 9:37am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Combobox lose ListIndex
Posted By: mlatona
Subject: Combobox lose ListIndex
Date Posted: 13 June 2008 at 9:07am
Hi,
 
I have a combobox with AutoComplete = true and Style = DropDown (xtpComboDropDown). When I choose an entry in the combobox with the keyboard and go to the next control on the form with the tab key, the property ListIndex is not set correctly.
 
 



Replies:
Posted By: younicke
Date Posted: 13 June 2008 at 9:37am
do u have sample code?


Posted By: mlatona
Date Posted: 13 June 2008 at 9:44am
1. Open the VB-Sample and start it.
2. Type "2" in the Combobox. The second entry is selected.
3. Change focus with the tab key. The sample write in the textbox the ListIndex property. The value of this property is -1.
 
https://forum.codejock.com/uploads/20080613_094357_TestListIndex.zip - uploads/20080613_094357_TestListIndex.zip
 


Posted By: younicke
Date Posted: 13 June 2008 at 9:56am
yes you are right... the correct listindex is not being returned.

i have made a workaround, maybe this could help

uploads/20080613_095638_TestListIndex.zip - uploads/20080613_095638_TestListIndex.zip


Posted By: mlatona
Date Posted: 13 June 2008 at 10:32am
Thank you for help. It works.


Posted By: younicke
Date Posted: 13 June 2008 at 10:45am
glad to be of help.

but you should send cj an issuetrack so that this maybe fixed in the next release.


Posted By: origos
Date Posted: 19 June 2008 at 3:13am
How do you send an issuetrack to cj ?
I thought posting here was enough


-------------

Enjoy life. Everything is OK...


Posted By: Aaron
Date Posted: 20 June 2008 at 5:26am
Hi,
 
http://support.codejock.com/ - http://support.codejock.com


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: Oleg
Date Posted: 20 June 2008 at 2:32pm
Hi,
I'm not sure that it have to change ListIndex. :-(
 
Think you can try xtpComboDropDownList style instead to be sure user can enter only values from list. With xtpComboDropDownList  if use press "1" combo will select "1 Item" and change ListIndex property.


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



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