C# 弹出窗体位置设定
来源:互联网 发布:阿里双11实时数据 编辑:程序博客网 时间:2024/05/29 18:49
一、C#中弹出窗口位置
加入命名空间using System.Drawing和using System.Windows.Forms
假定窗口名为form1,则
form1.StartPosition = FormStartPosition.CenterScreen;
窗体位置在屏幕中间
form1.StartPosition = FormStartPosition.CenterParent;
窗体在其父窗口中间
form1.StartPosition = FormStartPosition.Manual;
窗体在有其空间的Location属性而定
form1.StartPosition = FormStartPosition.WindowsDefaultBounds;
窗体位置由Windows默认位置决定,窗体大小也是Windows默认大小
form1.StartPosition = FormStartPosition.WindowsDefaultLocation
int width=SystemInformation.VirtualScreen.Width;
获取屏幕宽度
int height = SystemInformation.VirtualScreen.Height;
获取屏幕高度
加入命名空间using System.Drawing和using System.Windows.Forms
假定窗口名为form1,则
form1.StartPosition = FormStartPosition.CenterScreen;
窗体位置在屏幕中间
form1.StartPosition = FormStartPosition.CenterParent;
窗体在其父窗口中间
form1.StartPosition = FormStartPosition.Manual;
窗体在有其空间的Location属性而定
form1.StartPosition = FormStartPosition.WindowsDefaultBounds;
窗体位置由Windows默认位置决定,窗体大小也是Windows默认大小
form1.StartPosition = FormStartPosition.WindowsDefaultLocation
窗体位置是Windows默认,大小在窗体大小中确定
int width=SystemInformation.VirtualScreen.Width;
获取屏幕宽度
int height = SystemInformation.VirtualScreen.Height;
获取屏幕高度
0 0
- C# 弹出窗体位置设定
- C# 弹出窗体位置设定
- C# 弹出窗体位置设定
- c# 弹出窗体的显示位置设定
- C#中如何设定窗体的位置和大小
- 子窗体弹出位置错误
- 设定窗体打开所处位置
- c#右下角弹出窗体
- c# 窗体位置设置
- C# 指定窗体位置
- c# 设置窗体位置
- c# 窗体位置任意调
- c# 窗体位置任意调
- c# 中窗体的位置
- C# WinForm 窗体初始位置
- C# 指定弹出窗口位置
- MFC简易设定通用控制窗口弹出位置
- c# 弹出窗体选择文件代码
- Java对象的equals方法分析与重写
- python循环语句
- Shell下获取系统时间及转换为时间戳的方法
- joomla开发新手第一天
- 九度oj 1064
- C# 弹出窗体位置设定
- [多校2015.01.1010 容斥+迭代] hdu 5297 Y sequence
- Least Common Multiple
- MapReduce的NlineInputFormat
- HDU 1091 空心三角形
- set up tftp server on redhat system
- leetcode笔记:Remove Element
- “李四呢”这个名字挺独特的
- HDU5312 Sequence