Designer/Finds.txt

Modified: Brandon Cunningham
BASIC MODIFICATIONS License
import-module ([Environment]::GetFolderPath("MyDocuments")+"\PowerShell Designer\functions\functions.psm1")
function Convert-XmlToTreeView
function Get-CustomControl
function Get-UserInputFromForm
function Add-TreeNode
New-SendMessage -hWnd $btn_SizeAll.handle -Msg 0x0201 -wParam 0 -lParam 0
function Get-ChildNodeList
function Get-RootNodeObjRef
function Move-SButtons
$stlTimer = new-timer 1
function Save-Project
function ChangeView
function NewProjectClick
function OpenProjectClick
function RenameClick
function DeleteClick
function CopyNodeClick
function PasteNodeClick
function MoveUpClick
function MoveDownClick
function GenerateClick
'TreeView' = @{
'PropertyGrid' = @{
'trv_Controls' = @{
'lst_AvailableEvents' = @{
'lst_AssignedEvents' = @{
'ChangePanelSize' = @{
 'CheckedChanged' = {
$Script:childFormInfo = @{
$reuseContextInfo = @{
$Script:supportedControls = @(
$Script:specialProps = @{
function RunLast {
function LoadFunctionModule {
$Script:refs['Undo'].Add_Click({
$MainForm.Add_FormClosing({($e)
$tsNewBtn.Add_Click({NewProjectClick})
@('All Controls','Common','Containers','Menus and ToolStrips','Miscellaneous').ForEach({
$AST = [System.Management.Automation.Language.Parser]::ParseFile($designerpath, [ref]$astTokens, [ref]$astErr)
$FastText = New-Object FastColoredTextBoxNS.FastColoredTextBox
$xpopup = New-Object System.Windows.Forms.ContextMenuStrip
function EmptyListString{
$tsRunBtn.ToolTipText =
$btn_Find.add_Click({param($sender, $e)
$btn_RemoveFind.add_Click({param($sender, $e)
 $lst_Find.add_DoubleClick({
Set-WindowParent $FindWindowHandle $MainForm.Handle
$CheckForTypingTimer = new-timer
$FastText.Add_KeyUp({param($sender, $e)
$trv_Controls.add_MouseDown({param($sender, $e)
function RecordMacro {
$lst_Methods.add_DoubleClick({param($sender, $e)
$TreeView.add_DoubleClick({param($sender, $e)
$PropertyGrid.add_SelectedGridItemChanged({param($sender, $e)
$btnInject.add_Click({param($sender, $e)
$PopForm = new-object system.windows.forms.Form
function Bookmark {
function zoom-normal {
function Import-Form {
$trv_Controls.Nodes.Add("Imported Controls","Imported Controls")
function Import-Control {
Update-ErrorLog -ErrorRecord $_ -Message "Exception encountered unexpectedly at ShowDialog."