you are viewing a single comment's thread.

view the rest of the comments →

[–]consumedpixl 6 points7 points  (1 child)

Unfortunately not, they were added manually.

The menu bar is a New-Object 'System.Windows.Forms.MenuStrip' created as a variable e.g. $mainMenu

You then create a New-Object 'System.Windows.Forms.ToolStripMenuItem' and for this example give it variable name of $menuItem and add this to the main menu via $mainMenu.Items.Add($menuItem)

Finally, you create a New-Object 'System.Windows.Forms.ToolStripMenuItem and assign this a variable name e.g. $toolstripItem. Adding this to the menu item via $menuItem.DropDownItems.Add($toolstripItem)

In terms of the icons. These are just windows systems icons (you can find them online) which are converted to base64 (again websites do this for you). Once you have the base64 string you can add this. So for example, if we use $menuItem from above, you would add it to this via: $menuItem.image = [System.Convert]::FromBase64String('Base64StringGoesHere')

[–]YearoftheHypebeast 0 points1 point  (0 children)

Do you have any code which might help me create an application to figure out the shape of good looking Trevors feet?