I recently used this code to try and stop some jerky redrawing as I dynamically added tabpages to a tabcontrol and then dynamically added AxWebBrowser controls to those tab-pages.
Something about the above scenario results in some very unusual breakdowns of the Windows screen redraw apparatus where the application doesn't crash but ceases running and selectively decomposes into its background elements underneath it.
The author does warn about using this recursively, and I shudder to think of the levels of redrawing, etc. going on in this scenario.
Not really looking for a fix, but welcome any ideas about an alternative to more gently bring into view new web browser controls to a tabpage.