You must associate your edit controls with variables edit1 and edit2. Use classwizard for this.