Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Determining Value Change in Combobox
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Determining Value Change in Combobox

 Post Reply Post Reply
Author
Message
LeeHayton View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 November 2005
Location: United Kingdom
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote LeeHayton Quote  Post ReplyReply Direct Link To This Post Topic: Determining Value Change in Combobox
    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
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: 18 August 2006 at 3:40pm
Hi,
try CommandBarKeyDown event
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
LeeHayton View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 November 2005
Location: United Kingdom
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote LeeHayton Quote  Post ReplyReply Direct Link To This Post 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
 
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: 21 August 2006 at 9:01am
Sorry, no. :(
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
nighthawk View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 June 2004
Status: Offline
Points: 167
Post Options Post Options   Thanks (0) Thanks(0)   Quote nighthawk Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
LeeHayton View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 November 2005
Location: United Kingdom
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote LeeHayton Quote  Post ReplyReply Direct Link To This Post 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 

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.047 seconds.