<big>thank you very much</big> chard your code solve my problem. I posted this problem because i dont have the sample code on how to connect the radiobutton to the command button. Spider and chandru never gave me the sample code to solve my problem. here is now my code in c++ void CTuition1Dlg::OnButton1() { // TODO: Add your control notification handler code here UpdateData(); if ( m_button1.GetCheck() == BST_CHECKED ) { m_edit2 = m_edit1 * .9; UpdateData(false); } if ( m_button2.GetCheck() == BST_CHECKED ) { double x; x = m_edit1 * .05; m_edit2 = m_edit1 + x; UpdateData(false); } if ( m_button3.GetCheck() == BST_CHECKED ) { double x; x = m_edit1 * .10; m_edit2 = m_edit1 + x; UpdateData(false); } UpdateData(false); } if its not for your code I cannot solve it...thank you very much do you have ym sir chard? i would like to ym you if i have a problem on programming and i wish that you will still help me. Once again thank you... neil