0
如果「TotalFileCount」== 0,此代碼將打開一個文件夾。我想要打開該文件夾並使其位於屏幕中心,並且我希望它是一個特定的大小。有沒有辦法在C#中做到這一點?如何打開在屏幕中間以特定大小打開的文件夾
if (TotalFileCount == 0)
{
MessageBox.Show("There are no files in this directory. Please add pictures to this folder: " + AppVars.PolicyImagesDirectory + " and try again.", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);
btnBrowse.Focus();
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo.FileName = AppVars.PolicyImagesDirectory;
process.Start();
}
當新的Windows資源管理器窗口打開時,我可以將其設置爲特定的大小並將其居中在屏幕上嗎?
所以你的問題是「當打開新的Windows資源管理器窗口,我可以讓它具有一定規模,並把它某個位置?「 – 2012-08-07 17:40:23
是的,例如,當您雙擊一個文件夾時,它會打開資源管理器。我想調整這個觀點。 – Testifier 2012-08-07 17:43:37
真的,我不希望應用程序調整我的其他應用程序的窗口。 – 2012-08-07 17:54:42