[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

How to execute code in different appdomains in tabcontrol in c# .Net 2.0?

Asked by cosie in C# Programming Language, Miscellaneous Programming, Microsoft Visual C#.Net

Tags: .net, c#, appdomain

Hi,

I'm working on a webbrowser like app in .net winforms 2.0 c#.
The main GUI of the app consists of a tabcontrol and all tab represents a different webpage - like a classic tabbed webbrowser.
Each tab has a different download thread, which downloads content and renders the page using winforms controls in the tabpage.
But when any tab crashes the whole app destroys...

I need to avoid to crash the whole ap, so I decided to move every page into a different appdomain.
So I have to move my page downloading and rendering code into a different exe and run it from a different appdomain. I have to pass the TabControl object and url to the new class to render it's child controls to the main tabcontrol...

How to do that???
Please send me a working sample code...





[+][-]10/19/09 07:25 AM, ID: 25605383Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/19/09 08:01 AM, ID: 25605760Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/22/09 01:26 PM, ID: 25638597Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/06/09 10:50 AM, ID: 25761881Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625