Any way to run Single Document Interface (SDI) with multiple top level forms?

I am presently exploring the Visual Studio 2005 Express beta 2 and would like to use multiple top level forms in an SDI context (as is found in Word, etc.). I came across the article by Chris Anderson entitled "Real World Applications Sample, Part1: Adding ADI, Single Instance, and a Forms Collection to Windows Forms" but that seems to have been written for VS 2002. Its references do not seem to be included in the 2005 edition. So is such a thing possible in VS 2005 using C#

With the increasing number of dual monitor setups it would be nice to run the main application in the main monitor and have supporting data in their own form or forms  in the other monitor with easy data transfer between them.. In particular I am using the TrueVision 3D engine (works with C#) to visualize and setup 3D scientific simulations (or develop simple games for my son ... Hey Dad can actually do something cool!).

I also want to congratulate the Coding4Fun group on their postings so far.


Answer this question

Any way to run Single Document Interface (SDI) with multiple top level forms?

  • yousef.net

     DOlmsted wrote:
    I am presently exploring the Visual Studio 2005 Express beta 2 and would like to use multiple top level forms in an SDI context (as is found in Word, etc.). I came across the article by Chris Anderson entitled "Real World Applications Sample, Part1: Adding ADI, Single Instance, and a Forms Collection to Windows Forms" but that seems to have been written for VS 2002. Its references do not seem to be included in the 2005 edition. So is such a thing possible in VS 2005 using C#

    With the increasing number of dual monitor setups it would be nice to run the main application in the main monitor and have supporting data in their own form or forms  in the other monitor with easy data transfer between them.. In particular I am using the TrueVision 3D engine (works with C#) to visualize and setup 3D scientific simulations (or develop simple games for my son ... Hey Dad can actually do something cool!).

    I also want to congratulate the Coding4Fun group on their postings so far.

    DOlmsted,

       From what I have seen of the System.Windows.Forms namespace in Beta 2, I don't see any breaking changes.  There is no reason why the samples that you saw for .NET 1.0 (which corresponds to the version that was released with VS.NET 2002).

       You state that the references are not included in VS.NET 2005.  What references are missing

              - Nicholas Paldino [.NET/C# MVP]
              - mvp@spam.guard.caspershouse.com

  • frusciante

    The missing reference is "Microsoft.Samples.ApplicationFramework".

    Also when I download the code it has to go through some sort of conversion process to put it into the most recent .Net or Visual Studio format.

    Anyway I am going to try and put each form in its own thread and see if I can get method calls to work between them that way. With multicore processors on the way this is something I should learn anyway.

  • gfs

    Hi,

    Well I guess that there's another project or solution that you must compile first. And then register the output dll so that your sample could reference to it...

    Try checking the docs on your sample...




    cheers,


    Paul June A. Domag



  • SusanHX

    The 'Microsoft.Samples.ApplicationFramework' namespace belongs to the ApplicationFramework assembly that comes with the 'ImageBrowser.exe' download that is listed on the article you mentioned:

    http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnwinforms/html/reaworapps1.asp


  • Any way to run Single Document Interface (SDI) with multiple top level forms?