I am facing random hang issues in my VB.Net Windows application. On profiling I found the OnUserPreferenceChanged in stack trace. In this link on SO there is workaround provided but I don't understand how to use it in my VB.Net application. Please note Application framework is enabled in my VB.Net application.
Can any one help to understand how to subscribe to this event in VB.Net winform application?
Microsoft.Win32.SystemEvents.UserPreferenceChanged += delegate { };