Skip to content

Instantly share code, notes, and snippets.

View mikedhanson's full-sized avatar
🎯
Focusing

Michael Hanson mikedhanson

🎯
Focusing
View GitHub Profile
@mikedhanson
mikedhanson / MenuTest.ps1
Created November 16, 2018 14:28 — forked from HumanEquivalentUnit/MenuTest.ps1
PowerShell + Windows Forms dynamic dropdown menu from filesystem example
# These are the starting folders
$documentRoots = 'C:\Users\', 'C:\Program Files\'
# Load Windows forms assemblies
[void][Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
[void][Reflection.Assembly]::LoadWithPartialName("System.Drawing")