Wince实现电量、横屏(仿手机电量显示 右上角)
来源:互联网 发布:中信网网络在线客服 编辑:程序博客网 时间:2024/04/28 12:46
下载点击这
主要代码如下:
/// <summary> /// 横屏 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnhp_Click(object sender, EventArgs e) { if (btnhp.Text=="横屏") { this.Size = new Size(465, 272); Microsoft.WindowsCE.Forms.SystemSettings.ScreenOrientation = Microsoft.WindowsCE.Forms.ScreenOrientation.Angle0; btnhp.Text = "还原"; } else { this.Size = new Size(272, 465); Microsoft.WindowsCE.Forms.SystemSettings.ScreenOrientation = Microsoft.WindowsCE.Forms.ScreenOrientation.Angle90; btnhp.Text = "横屏"; } }
//60秒自动获取最新电量
int x = Screen.PrimaryScreen.WorkingArea.Right - this.Height; int y = Screen.PrimaryScreen.WorkingArea.Bottom - this.Width; this.Location = new Point(100, 2);//设置窗体在屏幕右上角显示 prodl.Value = WincePda.WinCeCoredll.GetBattery(); labdl.Text = WincePda.WinCeCoredll.GetBattery().ToString() + "%"; //60秒执行重新获得电量 timer1.Enabled = true;
效果图:
-------------------------
更新版本(效果图):
(桌面部分内容,受保护已抹掉)
- Wince实现电量、横屏(仿手机电量显示 右上角)
- 手机显示电量原理
- wince程序实现横屏显示、设备当前电量(C#)
- wince程序实现横屏显示、设备当前电量(C#)
- 打印显示手机剩余电量
- 手机电量
- 苹果手机电量显示不正确怎么回事
- 获取手机电量
- Android手机电量
- Android 获取手机电量
- 获取手机电量百分比
- Android获取手机电量
- android获取手机电量
- unity 读取手机电量
- iphone 显示蓝牙电量
- CC2540电量显示
- eclipse android 电量显示
- 蓝牙耳机电量显示
- Unity3D占用内存太大的解决方法
- HDU 2112 HDU Today
- 关于文本输入中的字符个数的实时提示的实现
- 数据挖掘与R语言
- Feathers组件--之--窗口
- Wince实现电量、横屏(仿手机电量显示 右上角)
- 设计模式:简单工厂、工厂方法、抽象工厂之小结与区别 (转)
- Swing居中和设置系统风格
- silverlight 背景平铺
- js去除空格12种方法
- 请问Winamp风格的一起移动窗口的实现,MoveWindow()/SetWindowPos()不完美
- OEM Thread-1592 WARN http: snmehl_connect: connect failed to(oem不能重启解决)
- ANT备份
- 经典sql基本语句大全