我想一个窗体同时在多个屏幕显示,并且每个屏幕显示的数据部一样,请问怎么实现?
解决方案 »
- 请问,如何设置一个按钮,点击按钮,将某个div内的内容生成一张jpg文件供人下载
- 江湖救急!!!!!!!
- 派单中[asp.net+sql server设计一特殊采集站点] [2000元+模版1000元]
- 请教 Cookie的用法,在线等
- 为什么我每次刷新aspx页面是,数据库就会自动增加一条新的数据?(清高手帮我分析哈源程序)
- .net 开发wap网站需要什么技术?需要注意什么?
- 关于DataGrid一些界面上设置的问题!
- 还是问题没有解决呀
- 问个弱智问题,很急!
- v_old="温昆温杭",能不能帮我写一段代码,把这四个汉字存入一个数组里,
- aspnetpager控件如何多条件分页
- 未能加载类型.asax
public Rectangle[] GetSplittedRectangles(Rectangle rt, int rowCount,int colCount)
{
Rectangle[] rects = new Rectangle[rowCount * colCount];
int width = rt.Width / colCount;
int height = rt.Height / rowCount;
for (int rowIndex = 0; rowIndex < rowCount; rowIndex++)
{
for (int colIndex = 0; colIndex < colCount; colIndex++)
{
rects[rowIndex * colCount + colIndex] = new Rectangle(colIndex * width,
rowIndex * height, width, height);
}
}
return rects;
}
多显示器api
EnumDisplayMonitors MonitorFromPoint
{
Form2 form2 = new Form2();
Form3 form3 = new Form3();
Form4 form4 = new Form4();
Screen[] screens = Screens.AllScreens;
if(screens.Length == 2)
{
List<Screen> lstScreen = new List<Screen>();
foreach(Screen screen in Screen.AllScreens)
{
if(screen.Primary == false)
lstScree.Add(screen);
}
form2.Location = lstScreen[0].WorkingArea.Location;
form3.Location = lstScreen[0].WorkingArea.Location;
form4.Location = lstScreen[0].WorkingArea.Location;
}
else if(screens.Length == 4)
{
List<Screen> lstScreen = new List<Screen>();
foreach(Screen screen in Screen.AllScreens)
{
if(screen.Primary == false)
lstScree.Add(screen);
}
form2.Location = lstScreen[0].WorkingArea.Location;
form3.Location = lstScreen[1].WorkingArea.Location;
form4.Location = lstScreen[2].WorkingArea.Location;
}
}