大王世宗国语版,好笑的视频,姓金的名人
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Configuration;
namespace WinClient
{
public partial class MainForm : Form
{
public MainForm()
{
InitializeComponent();
}
private void MainForm_Load(object sender, EventArgs e)
{
try
{
//设置窗体无边框
this.FormBorderStyle = FormBorderStyle.None;
//窗口置顶
this.TopMost = true;
//开始位置由 Location 决定
this.StartPosition = FormStartPosition.Manual;
Screen[] screens = System.Windows.Forms.Screen.AllScreens;
if (screens.Length >= 2)
{
//获取扩展屏
Screen childerScreen = screens[1];
//设置宽高
this.Width = childerScreen.Bounds.Width;
this.Height = childerScreen.Bounds.Height;
//设置显示位置
this.Location = childerScreen.WorkingArea.Location;
}
else
{
MessageBox.Show("只有一个显示器");
}
}
catch (Exception ex)
{
//错误日志处理
}
}
}
}
完整代码下载地址
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
Blazor server side 自家的一些开源的, 实用型项目的进度之 CEF客户端
.NET IoC模式依赖反转(DIP)、控制反转(Ioc)、依赖注入(DI)
vue+.netcore可支持业务代码扩展的开发框架 VOL.Vue 2.0版本发布
网友评论