>> Unfortunately loading *UI* code into a separate AppDomain is not a
>> supported scenario in Windows Forms
[quoted text clipped - 5 lines]
> - Can Winform code be *reliably* run in an AppDomain at full trust? It
> seems to work for me - can I rely on it?
What do you mean by "realiably"? Full trust means that is has all possible
permissions.
> - Is there any other way to reduce the permissions of code that contains
> UI code, so that it can't access files / network etc?
Yes, there ways of doing this. For example, you can package this code in a
separate assembly, and then when the assembly is loaded you can supply
evidence that will make it run at a reduced security level. I suggest
reading one of the books on Code Access Security - there are several.
> - Will it be possible in future versions of the framework?
>
> It'd be great if someone can point me to docs or a web page outlining
> this - I'd like to have something to show to others about why my current
> approach won't work.
Ask your questions on the security newsgroup @
microsoft.public.dotnet.security