这可能吗?微软在设计.NET FrameWork时它们(webform and winform)用的命名空间都不能够在一起用;此路不通;

解决方案 »

  1.   

    duwamish例子做得很好
    你使用VS企业级模版创建简单分布式应用程序就会生成winUI和webUI中间几层公用
      

  2.   

    xhan2000(popeye.net)说的有理.
    要想尽可能的共用代码,只有用分布式应用了.
      

  3.   

    看这个例子,就是实现了Windows Form和Web Form的两套代码。
    http://www.codeproject.com/cs/miscctrl/DynamicForms.asp
      

  4.   

    implement a User Process Component, there is a good architectural level article on MSDNApplication Architecture for .NET: Designing Applications and Services
    http://msdn.microsoft.com/architecture/application/default.aspx?pull=/library/en-us/dnbda/html/AppArchCh2.asp