c# windowsmobile开发技巧
2009-06-21 11:47
393 查看
(1)如何构造全屏窗体
this.WindowState = FormWindowState.Maximized; this.FormBorderStyle = FormBorderStyle.None; this.ControlBox = false; this.Menu = null;
(2)如何将一个窗体放在屏幕中央?
要显示一个非全屏窗体,请确保窗体的 FormBorderStyle 属性设置为 FormBorderStyle.None。要使窗体位于中央,请将以下代码添加到窗体的 FormLoad 事件处理程序中:将 FormBorderStyle 设置为 FormBorderStyle.None,然后
Rectangle screen = Screen.PrimaryScreen.Bounds;
this.Location = new Point((screen.Width - this.Width) / 2,
(screen.Height - this.Height ) / 2);
相关文章推荐
- Windows Mobile/Windows CE开发技巧 —— 创建一个新进程
- Windows Mobile/Windows CE开发技巧 —— 控制软键盘开启和关闭
- Windows Mobile/Windows CE开发技巧 —— 使用钩子实现自定义系统功能键
- Windows 8技巧:Xaml+C#开发第一个Metro Style应用程序的使用
- C#开发技巧之如何根据年份判断十二生肖
- C#编程技巧之钩子函数的使用——SetWindowsHookEx
- C# windows mobile输入法窗口不挡住文本框?
- [c#][Windows 10 | Windows 10 mobile]UWP自适应UI——VisualStateManager
- windowsphone(windows 10 mobile)开发基础笔记
- c#开发的程序安装时动态指定windows服务名称
- Windows SharePoint Services 3.0编码开发工具和技巧(Part 1 of 2) 【转】
- Windows 8实用窍门系列:1.使用Xaml+C#开发第一个Metro Style应用程序 推荐
- [C# 开发技巧]实现属于自己的截图工具
- C#开发Windows Services服务--服务安装失败的解决办法
- [C# 开发技巧]如何防止程序多次运行
- C# Windows 7任务栏开发之进度条(Progress Bar)
- C# 开发和使用中的23个技巧
- C#开发和使用中的23个技巧
- 关于C#WINDOWS开发-复杂控件程序
- 转:[C# 开发技巧]如何防止程序多次运行