窗口瓷砖

介绍 (Introduction)

I created Window Tiler out of the need to monitor multiple running applications.

我创建Window Tiler是出于监视多个正在运行的应用程序的需要。

For example, if I have to run a process that starts a bunch of processes, I can see each window as it is running because Window Tiler constantly retiles as application windows open and closes.

例如,如果我必须运行一个启动一堆进程的进程,则可以看到每个窗口正在运行,因为Window Tiler随着应用程序窗口的打开和关闭而不断地变化。

示范执行 (Demo Execution)

演示地址

C#代码 (The C# Code)

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Tiler
{
public partial class frmMain : Form
{
public frmMain()
{
InitializeComponent();
}

private void tmrTiler_Tick(object sender, EventArgs e)
{
try
{
Shell32.Shell shell = new Shell32.Shell();
if (this.chkTileWindowsHorizontally.Checked)
{
shell.TileHorizontally();
}
else if (this.chkTileWindowsVertically.Checked)
{
shell.TileVertically();
}
}
catch
{

}
}

private void butStart_Click(object sender, EventArgs e)
{
tmrTiler.Interval = (int)(numTimer.Value * 1000);
tmrTiler.Enabled = true;
}

private void butStop_Click(object sender, EventArgs e)
{
tmrTiler.Enabled = false;
}

}
}

 

通过代码生成应用程序(Visual Studio 2017) (Building the application from Code (Visual Studio 2017))

1) Download the Visual Studio 2017 project from https://bitbucket.org/svermaak/tiler/downloads/

1)https://bitbucket.org/svermaak/tiler/downloads/下载Visual Studio 2017项目

2) Using your favourite compression tool extract the downloaded ZIP file to a convenient location, typically your Visual Studio 2017 project folder under "My Documents"

2)使用您喜欢的压缩工具将下载的ZIP文件提取到一个方便的位置,通常是“我的文档”下的Visual Studio 2017项目文件夹

3) Open the solution file (Tiler.sln) in Visual Studio 2017 and build project (F6 or Build Solution from Build menu)

3)在Visual Studio 2017中打开解决方案文件(Tiler.sln)并生成项目(从Build菜单中选择F6或Build Solution)

4) You can find the compiled EXE from the BIN folder of the project folder

4)您可以从项目文件夹的BIN文件夹中找到已编译的EXE

下载EXE (Download The EXE)

If you do not have Visual Studio 2017 or just want the EXE, you can download it from http://blog.ittelligence.com/wp-content/uploads/2018/03/Tiler.zip

如果您没有Visual Studio 2017或仅需要EXE,则可以从http://blog.ittelligence.com/wp-content/uploads/2018/03/Tiler.zip下载它

Please do not forget to press the "Thumb's Up" button if you think this article was helpful and valuable for EE members.

如果您认为本文对EE成员有用且有价值,请不要忘记按“ Thumb's Up”按钮。

It also provides me with positive feedback. Thank you!

它还为我提供了积极的反馈。 谢谢!

翻译自: https://www.experts-exchange.com/articles/31834/Window-Tiler.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值