I've been wondering whether the following would be possibe:
In .NET 1.1 create a class library with form A.Compile and copy the assembly to a .NET 2.0 machine.In .NET 2.0 create a form B that inherits from form A.Run form A in .NET 2.0.
This works, no problems.
In .NET 1.1 create a winapp with form A which has a button that triggers the following code:
object temp = Activator.CreateObjectFrom( "Test.dll", "Test.FormB" ).Unwrap();Form f = (Form) temp;f.Show();
Compile and copy the assembly to a .NET 2.0 machine.In .NET 2.0 create a class library with form B.Compile the assembly.Start the winapp, click the button, et voila, the .NET 1.1 assembly will start the .NET 2.0 form.
Also works without problems
Just giving all this a try has taken away quite a bit of doubt about whether this would work or not and means that in a GUI .NET 1.1 and .NET 2.0 work together quite nicely.
dasBlog theme by Mads Kristensen
Concepts LINQ Entity Framework WCF WPF RESTful Web Unit Testing .NET Workflow More >>
Tools Visual Studio Windows IIS Silverlight More >>
Type Screencast Tools Video Newsletter Sample Article Books Magazine How To Demo Course Products More >>