aeveltstra, to Powershell
@aeveltstra@mastodon.social avatar

I updated my example creation script:

https://gist.github.com/aeveltstra/2da6ef5a7dd93c4d44e24f9cde9fc676

It shows how to create a graphical user interface with Windows.Forms (dotnet) in Powershell.

The update added the ability for the font to adapt to the user's font theme and size changes in Windows. It's silly, really: Windows.Forms should do that by itself. But it doesn't, so every programmer has to be aware and make it happen.

aeveltstra, to Powershell
@aeveltstra@mastodon.social avatar
aeveltstra, to mswindows
@aeveltstra@mastodon.social avatar

I created a sample form for #MSWindows using #dotnet #windowsforms via #powershell:
https://gist.github.com/aeveltstra/2da6ef5a7dd93c4d44e24f9cde9fc676

The most difficult thing about this script was to get the form and the tab control to size to their contents. That doesn't happen automatically. At Powershell level, the control size appears to have a Height and Width property that can be set. That is not the case on my Powershell and Windows 10 Pro. I had to create a System.Drawing.Size object and assign that to the size property.

merrie_mcgaw, to dotnet

Anyone migrating #WinForms #WindowsForms apps from .NET Framework to #dotnet? We'd love your feedback and thoughts about the process and any blockers you may have:
https://aka.ms/WinFormsFeedback

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • megavids
  • GTA5RPClips
  • ethstaker
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • tacticalgear
  • anitta
  • provamag3
  • Leos
  • cisconetworking
  • lostlight
  • All magazines