Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Application crashes on MessageBox in function OnKillFocus of a EditBox

Status
Not open for further replies.

debugee

Programmer
Oct 10, 2002
3
MK
Problem with KillFocus
------------------------------------------------------------
When a cell is opened for edit a CEdit is created. If I then do anything that removes the focus from the edit box the OnKillFocus method is activated. However, this causes the edit box to be deleted. What I need to do is be able to validate the contents of the cell and, if not valid (for whatever reason) display a messagebox and return focus to the edit box. when I display the messagebox, because focus has been removed from the cell the OnKillFocus method is activated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top