Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Get Focus
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Get Focus

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


Joined: 11 August 2007
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote emailstomark Quote  Post ReplyReply Direct Link To This Post Topic: Get Focus
    Posted: 01 April 2008 at 3:31am
Hello
In the attached example the first text box checks to see if the value in the text box is numeric when it loses focus.

What I would like is how to make the CommandBar get focus, so that the text box lost focus event will trigger.

 

This is only an example, as the value could be verified in many ways, but I need to have validation when the textbox loses focus, but the CommandBar doesn’t seem to have a “Get focus property”, or better still a get focus property on a single control in the CommandBar.

 

If anyone has come across this before and solved it I would be very grateful for you advice

 

Thanks

 

Markuploads/20080401_033025_project1.zip
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 04 April 2008 at 12:11pm
Hi,
 
You can set the focus to any button in commandbars but it doesn't really get the focus, when returning to the form the textbox has the focus again.
 
Maybe you can use the commandbar EDIT control instead. When saving the customer the update event fires. Here you can detemine if the value is numeric.
 
 
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.031 seconds.