0
点赞
收藏
分享

微信扫一扫

winfrom 右上角 显示用户固定位置

MaxWen 2022-02-28 阅读 77
c#

使用dev button 按钮 根据窗体大小修改位置

         /// <summary>
        /// 更大界面大小事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void FrmMain_SizeChanged(object sender, EventArgs e)
        {
            sBtn_Personnel.Text = "处理人";
            //MessageBox.Show(""+this.Location.Y+"" +this.Location.X);
            if (this.Width>900)
            {
                sBtn_Personnel.Location = new System.Drawing.Point(this.Width - 200, +10);
            }
        }

 

举报

相关推荐

0 条评论