dennismagno / metroframework-modern-ui

My humble attempt to bring the new Modern UI alias Metro UI of Windows 8 to .NET Windows Forms applications.
http://dennismagno.github.io/metroframework-modern-ui
Other
861 stars 1.08k forks source link

Commit porting to .net5 #114

Open Padanian opened 4 years ago

GunArm commented 3 years ago

In MetroMessageBox.cs an exception is thrown when clicking OK on a message box. The exception is System.PlatformNotSupportedException: 'Operation is not supported on this platform.' on the line: IAsyncResult _asyncresult = _delegate.BeginInvoke(_control, null, _delegate); because of this issue Which can be fixed (to my observation) by replacing it with Task _asyncresult = Task.Run(() => _delegate(_control));

(Edit: Noticed on core3.1 but I assume it affects 5 as well)

roxaskeyheart commented 2 years ago

Just a note that when I build this PR, I cannot add any of the controls to the toolbox anymore. Visual Studio just will not accept the dll to add.

jespersh commented 2 years ago

@roxaskeyheart the thing we're all waiting for is to https://github.com/dotnet/winforms-designer/ to become public