Print Page | Close Window

Get Focus

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=10024
Printed Date: 16 June 2025 at 3:36pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Get Focus
Posted By: emailstomark
Subject: Get Focus
Date 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

 

Mark https://forum.codejock.com/uploads/20080401_033025_project1.zip - uploads/20080401_033025_project1.zip



Replies:
Posted By: Aaron
Date 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.
 
 



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