lostfocus

  • Thread starter Thread starter Sam
  • Start date Start date
S

Sam

Hi,

I've got a datagrid and a treeview. When the user gives the focus to
the treeview I'd like to display a messagebox only if the datagrid had
the focus previously.
How can I do that ?

thx
 
One way is to use a global string variable and in all of the controls Enter
Events, set the variable to the name of the control. You can then check this
variable in any control Enter event to see what had the focus before.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top