C# 控件调整
2024-10-19 14:42:12
//最大化
this.WindowState = FormWindowState.Maximized;
//去掉标题栏
this.FormBorderStyle = FormBorderStyle.None; //设置picbox
this.pictureBox1.Width = this.Width;
this.pictureBox1.Height = this.Height;
this.pictureBox1.Left = ;
this.pictureBox1.Top = ;
this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;//设置背景图像布局
this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Fill; //随着父级一起改变
this.pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;//自适应
//最大化
this.WindowState = FormWindowState.Maximized;
////去掉标题栏
//this.FormBorderStyle = FormBorderStyle.None; //设置picbox
this.axWindowsMediaPlayer1.Width = this.Width;
this.axWindowsMediaPlayer1.Height = this.Height;
this.axWindowsMediaPlayer1.Left = ;
this.axWindowsMediaPlayer1.Top = ;
this.axWindowsMediaPlayer1.Dock = System.Windows.Forms.DockStyle.Fill; //随着父级一起改变
最新文章
- ural 1069. Prufer Code
- Android 2.3 不支持印度文
- web.xml中contextConfigLocation的作用
- Asp.net简单代码设置GridView自适应列宽不变形
- 关于Response.redirect和Response.End出现线程中止异常的处理
- JMeter性能测试,完整入门篇
- Git学习(2)-使用Git 代码将本地文件提交到 GitHub
- hdu 4533 线段树(问题转化+)
- SpringMVC接收json数组对象
- 扒一扒EOS的前世今生
- python chrome的自定义启动
- SVG的学习(34—36)
- python面向对象--类
- FTP主动模式与被动模式,及java FTPClient模式设置
- Linux系统如何让显示中文?英文centos切换中文
- Sql日期时间格式转换[zhuan]
- 学习笔记12—linux下文件的复制、移动与删除
- iOS block 机制
- Python练习环境搭建-引入预定义数据
- centos7 安装 supervisor