Remove more usages of Microsoft.VisualBasic.
Add an activated event handler, to redraw opengl components on focus.