View previous topic :: View next topic |
Author |
Message |
jicman
Joined: 22 Dec 2004 Posts: 298 Location: Rochester, NY
|
Posted: Tue Jun 05, 2007 3:41 pm Post subject: How to know when the cursor has left a textBox |
|
|
Greetings.
I have a textBox and I would like to know when a cursor has left that textBox, and after that, execute a function. I guess I could do the Keys.TAB, but what if the user uses the mouse?
thanks,
jic |
|
Back to top |
|
|
un_guru
Joined: 14 Sep 2005 Posts: 32
|
Posted: Wed Jun 06, 2007 12:21 am Post subject: |
|
|
hi,
you can do it like this:
Code: |
textBox.mouseLeave ~= &onMouseLeave_textBox;
void onMouseLeave_textBox(Object o, MouseEventArgs mea)
{
// property of dfl.control: http://wiki.dprogramming.com/DflDoc/Control
}
|
|
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Wed Jun 06, 2007 10:04 am Post subject: Re: How to know when the cursor has left a textBox |
|
|
I think you want lostFocus |
|
Back to top |
|
|
|