I am using C++ builder 6.0 and windows XP
I have a form with numerous edit boxes when the user inputs information to the edit box then presses X (i have used the keypress method of the edit box) I want to give focus to the form so that when the user presses X again something else will happen.
void __fastcall Tentermeters1form::MaskEdit1KeyPress(TObject *Sender,
if (Key == 'X') // if user presses X the program will show the totals on the screen
//DO OTHER CLACULATIONS HERE
}// end if Key == X
after all the calculations are done I want the form to receive focus but the above code doesnt work could anyone explain why?