这个问题so简单,只值5分 1.this.width & this.Height2.dc.width & dc.height 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Rectangle r = Screen.PrimaryScreen.Bounds;int i = r.Width;int j = r.Height;int x = r.X;int y = r.Y; 1.this.width & this.Height2.如果你只有一个Screen用: Screen.PrimaryScreen.Bounds.Width; Screen.PrimaryScreen.Bounds.Height; 如果你有多个Screen用int x ;int y ;int index;int upperBound; Screen [] screens = Screen.AllScreens; upperBound = screens.GetUpperBound(0); for(index = 0; index <= upperBound; index++) { // For each screen x=screens[index].Bounds.Width; y=screens[index].Bounds.Height; } 70分求完善一段程序 Global.asax的问题跪求高手 请问一些关于Cookies的问题。。。 如何实现同一个数据源绑定到两个控件上,而又要能两个控件显示同步? 请大侠进来看看这是报的什么错啊,该怎么改才行啊?先谢了! 关于DataRow和DataView的问题。 一個字符串加密的問題! 有没有类似VC里CString类里的Format的函数? 请问,如何做文件下载? 服务器上安装了360,但是远端数据发送给服务器上的软件的时候,360会把软件杀掉 访问SQL-server如何应用组件,连接字符串怎么写?在线等待! 那位能给点C#生成统计图表源码?指点一下迷津!不够加分!
int i = r.Width;
int j = r.Height;
int x = r.X;
int y = r.Y;
2.如果你只有一个Screen用:
Screen.PrimaryScreen.Bounds.Width;
Screen.PrimaryScreen.Bounds.Height;
如果你有多个Screen用int x ;
int y ;int index;
int upperBound; Screen [] screens = Screen.AllScreens;
upperBound = screens.GetUpperBound(0); for(index = 0; index <= upperBound; index++)
{
// For each screen
x=screens[index].Bounds.Width;
y=screens[index].Bounds.Height;
}