in dialog base application i used two modal dialog boxes in first dialog box i using two text boxes where i entered username and password and do modal the second dialog where i want to used this values in second dialog box but when i used getdlgitemtext() and getwindowtext() from second dialog box it giving the blank values can any one tell me how to get the values of edit box in second dialog box class Thanks