I have an Outlook add-in that contains a web browser control that is a part of the user control at the moment and I am loading a webpage onload of this add-in. So, it works fine so far, however, when the page takes long to load, it makes the UI unusable for the user to continue with their work. So, my question really is, can I shift that web browser control from the user control and create a separate thread that has this web browser control and do all the web browser loading in that thread. This way, whilst the control is taking its time to load, the user can continue with their work.
I have been reading about this approach in this post: WebBrowser Control in a new thread
But I am struggling to reuse this for my particular use case. Could someone help me with this approach? I have posted my code here as well: