当控件无法获得焦点时(修改)

        private void Form1(object sender, EventArgs e)
        {
            try
            {
                this.TextBox1.Focus();
                //throw new Exception("控件无法获得焦点.");
            }
            catch (Exception ex)
            {
               ex.Message;
            }
        }
posted @ 2007-12-07 10:03  二月草  阅读(236)  评论(0编辑  收藏  举报