打开外部网格视图时,我的Powershell Gui界面会不断调整大小

时间:2018-11-12 10:12:59

标签: powershell user-interface

我目前正在构建“复制到剪贴板”工具,其中显示了存储在文件夹中的.txt文件列表,并且我使用out-gridview允许用户更好地选择和过滤列表。我已附上图片以供参考。

单击加载外部网格视图的按钮后如何停止调整大小?

工具全尺寸:
Tool full size

带有gridview的工具:
Tool with gridview

function LaunchQuickNotes {

        Get-ChildItem -Path '\\c\s\CAF1\ITSC Second Line Support\Craig Heckles Team\GUI\QuickNotes Tool\Quick_Notes\File_Store' | 
        Select-Object Name,FullName | 
        Out-GridView -PassThru -Title "Quick Notes"| 
        ForEach-Object{Get-Content $_.Fullname | Set-Clipboard -Append}
}

Generate Form

Add Menu to Form and buttons

button Functions

0 个答案:

没有答案