如何实现双屏显示(在线等) 一个售卖系统,一个屏是收银员看,一个是给顾客看购买的商品的名称和金额等。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 BeTwin一台电脑变多台 绿色版(最多5台电脑) /// 设置在第几个屏幕上启动。 /// </summary> /// <param name="screen">屏幕(从0开始)</param> /// <param name="form">要启动的程序。</param> public void FormStartScreen(int screen,Form form) { if (Screen.AllScreens.Length <= 1) return; if (Screen.AllScreens.Length < screen) return; form.StartPosition = FormStartPosition.Manual; form.Location = new System.Drawing.Point(Screen.AllScreens[screen].Bounds.X, Screen.AllScreens[screen].Bounds.Y); form.WindowState = FormWindowState.Maximized; } /// <summary> /// 默认在第1一个扩展屏幕上打开。 /// </summary> /// <param name="form">要启动的程序。</param> public void FormStartScreen(Form form) { FormStartScreen(1, form); } 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; } 关于C#实现查找文件的功能 新浪博客自动访问留脚印 C#导出动态excel问题! 关于WebBroswer1 取URL 不带参数问题 翻译????? 救命啊!这个问题搜了好长时间都没有解决办法! 问个从WinForm程序提交一些数据到网站页面,在取反回的数据的问题. Datagrid(带分页)的全部内容导出,急!!! 请问在C#中如何使用“索引服务”? asp.net网站项目中使用Type.GetType获取对象为NULL 急:Type如何转变为泛型T? format 问题
/// </summary>
/// <param name="screen">屏幕(从0开始)</param>
/// <param name="form">要启动的程序。</param>
public void FormStartScreen(int screen,Form form)
{
if (Screen.AllScreens.Length <= 1)
return;
if (Screen.AllScreens.Length < screen)
return;
form.StartPosition = FormStartPosition.Manual;
form.Location = new System.Drawing.Point(Screen.AllScreens[screen].Bounds.X, Screen.AllScreens[screen].Bounds.Y);
form.WindowState = FormWindowState.Maximized;
} /// <summary>
/// 默认在第1一个扩展屏幕上打开。
/// </summary>
/// <param name="form">要启动的程序。</param>
public void FormStartScreen(Form form)
{
FormStartScreen(1, form);
}
{
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;
}