导航

添加form窗口最大化最小化事件

Posted on 2008-12-24 11:09  ccjvl  阅读(428)  评论(0编辑  收藏  举报
        private void MainForm_Resize(object sender, EventArgs e)
        {
            
if (WindowState == FormWindowState.Maximized)
                
this.tChart1.Legend.Left = 600;
            
else if(WindowState == FormWindowState.Normal)
                
this.tChart1.Legend.Left = 490;
                
        }