>Actually I'm trying to make an object dissapear when another object got focus,
>Assume a combobox has 2 object, a textbox and a listbox, if neither of that object got focus, the listbox dissapear.
>Hope this can explain what I meant.
>
>Thanks,
As Erik said,
* thisform.txtbox1.gotfocus()
Thisform.lstbox1.visible = .T.
* Thisform.txtbox1.lostfocus()
Thisform.lstbox1.visible = .F.
* ThisForm.txtbox2.gotfocus()
Thisform.lstbox1.visible = .T.
* Thisform.txtbox2.lostfocus()
Thisform.lstbox1.visible = .F.
It will Save much time to
Busy Check the current active object is or not your desire txtbox.
Otherwise, you need to add a timer to check the current active object from time to time.. ~_~
In File Section, there is a textbox called
txteval will have similar feature!
when gotfocus, show another longer txtbox to input expression,
when lostfocus, return back the EVAL() and reverse the visible setting...
^_~ Good Luck!
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.