如果“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 资源管理器窗口打开时,我可以将其设置为特定大小并在屏幕上居中吗?