You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Forms designer actually calls the subscribed events when you do stuff like clicking, resizing the control that inherits/has a glcontrol.
To stop it from crashing:
make a private bool isInDesignMode = (LicenseManager.UsageMode == LicenseUsageMode.Designtime);
and then do a if(isInDesignMode) {return} check before any other logic, in the affected methods (examples are onResize, onPaint).
The text was updated successfully, but these errors were encountered:
resHQ
changed the title
Using a custom control that inherits GLControl, in designer crashes visual studio
In Forms Designer, using a custom control that inherits GLControl crashes visual studio
Feb 10, 2020
encountered in visual studio 2019.
Forms designer actually calls the subscribed events when you do stuff like clicking, resizing the control that inherits/has a glcontrol.
To stop it from crashing:
make a
private bool isInDesignMode = (LicenseManager.UsageMode == LicenseUsageMode.Designtime);
and then do a if(isInDesignMode) {return} check before any other logic, in the affected methods (examples are onResize, onPaint).
The text was updated successfully, but these errors were encountered: