Print Page | Close Window

Determining Value Change in Combobox

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=4832
Printed Date: 20 June 2025 at 3:44pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Determining Value Change in Combobox
Posted By: LeeHayton
Subject: Determining Value Change in Combobox
Date Posted: 18 August 2006 at 1:57pm
I need to determine when a key has been pressed (value changed) in a combobox control of the command bar Where the .DropDownListStyle = True .
 
How can i do this?
 
Thanks



Replies:
Posted By: Oleg
Date Posted: 18 August 2006 at 3:40pm
Hi,
try CommandBarKeyDown event

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


Posted By: LeeHayton
Date Posted: 21 August 2006 at 4:48am
Thanks, but I need something which will tell me what the changes were like a "CommandBarKeyUp" event - as the KeyDown event fires before the changes can be read from the combo/edit box.
 
Is this possible?
 
TIA
 


Posted By: Oleg
Date Posted: 21 August 2006 at 9:01am
Sorry, no. :(

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


Posted By: nighthawk
Date Posted: 21 August 2006 at 3:05pm
Try creating a variable that is global to the form.  Use it to store the current value of the combobox.  In the CommandBars_Update() event, check the current value of the combobox against the value stored in the global variable.  If it is different, then the value has changed.


Posted By: LeeHayton
Date Posted: 22 August 2006 at 4:31am
Thanks - but I already know that the value has changed because the event has fired. I just wanted to get the changes in the event instead of having to do another step.

Cheers 




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