if ur application is dialog based then u may used GetDlgItem(ID_UR_EDIT)->SetWindowText("what u want to diaplay"); here this function reduces number of varialble declaration and UpdateData() is need not call to refresh ur app. urs kiran.s kiran kumar.s