日期:2014-05-19  浏览次数:20955 次

点击按钮后 要点很多次才能正确显示输出在textBox里的值,怎么回事?
public   void   button1_Click(object   sender,   EventArgs   e)
                {

       

                        //   贷款总数Check

                                if   (m_lTotalMoney   <=   0)
                                {

                                        MessageBox.Show( "[贷款总数]输入不正确 ");

                                        textBox1.Focus();
                                        textBox1.Select(0,   textBox1.Text.Length);

                                        return;
                                }
                          m_lTotalMoney   =   long.Parse(textBox1.Text);
                       
                        //   年利率Check

                        if   (comboBox1.Text.Length   ==   0)
                        {
                                MessageBox.Show( "请输入[年利率] ");

                                comboBox1.Focus();
                                comboBox1.Select(0,   comboBox1.Text.Length);
       
                                return;

                        }

                        //   获得月利率
                        if   (m_dYearInterestRate   <=   0)
                        {
                                MessageBox.Show( "[年利率]输入不正确 ");
                             
                                comboBox1.Focus();
                                comboBox1.Select(0,   comboBox1.Text.Length);