Posted 29 December 2017, 4:52 am EST
In the following scenario, changing the application theme cases an:
System.Reflection.TargetInvocationException: ‘Exception has been thrown by the target of an invocation.’
Inner Exception
NullReferenceException: Object reference not set to an instance of an object.
In the included project press
Show Form2
then
Close Form2
then
Change Theme
The required conditions are:
Form2 Inherits C1.Win.C1Ribbon.C1RibbonForm
a New Form2 is loaded into the f2 variable