• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 310
  • Last Modified:

keep button focused

Hi experts

I am building a form where i have buttons and a combo - box, when i select a value in the combo - box i want the size of the selected button to change, the problem i have is that the button loses focus when i select a value in the combo - box and so the program does not know what button to alter, please help.
1 Solution
AndyAinscowFreelance programmer / ConsultantCommented:
Only one control can have the focus at any one time.
Assuming I understand you correctly (and it sounds very odd what you want) - you need to somehow keep track of which button has last had the focus when the focus changes to another control in your form.  Controls have a Leave event - you could use this to keep track of the most recently used button.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now