1

I have a windows form with Bunifu Elipse Control Targeting Form1, when i clicks minimize button throwing an exception 'parameter is not valid'

same error happening when i change the FormSize to None (Boarder less form), and create a button (-) manually for minimize. exception rises here

try
{
    this.WindowState = FormWindowState.Minimized;
}
catch { } 

Anyone help me from this bug! Thanks Attaching Screenshots of bugs Here error dialogue screenshot

enter image description here

Ehsan Sajjad
  • 61,834
  • 16
  • 105
  • 160
Lazy Programer
  • 171
  • 1
  • 1
  • 12
  • Does https://forums.ni.com/t5/Measurement-Studio-for-NET/TypeLoadException-crossed-native-managed-boundary/td-p/3136374 help? – mjwills Nov 23 '17 at 12:05
  • Possible duplicate of [Why all my exceptions messages now end with "crossed a native/managed boundary"](https://stackoverflow.com/questions/4182518/why-all-my-exceptions-messages-now-end-with-crossed-a-native-managed-boundary) – mjwills Nov 23 '17 at 12:05
  • Uncheck VS(2010) -> Tools ->Options -> Debugging -> General -> Break When Exception Cross AppDomain/Managed .. Solves the problem! – Lazy Programer Nov 24 '17 at 03:50

0 Answers0