none
How to embed a form/control from another application(exe) in my form RRS feed

  • Question

  • I need to find a way to embed (not linking) a form / control from another application in my form.

    Similar to IFrame in Web Apps where we show a page from another site.

    Is it releated with OLE?

    i need to do this in C# .Net

    Thanks in Advance!!!
    Thursday, May 29, 2008 2:18 PM

Answers

All replies


  • if the other application is written in .net 2.0 or later and you are using vs.net 2005 and later, I remember you can add that application as reference directly.

    • Marked as answer by jack 321 Monday, June 2, 2008 8:44 AM
    • Unmarked as answer by jack 321 Monday, June 2, 2008 8:44 AM
    Thursday, May 29, 2008 3:15 PM
  • I dont want just adding as a reference, i want to display a form in another application embedding in my form like using IFrame to display another website in our site.
    Monday, June 2, 2008 8:28 AM
  • Hi SrinivasanMandiHariharan,

    Perhaps the Reflection in C# is a solution to your issue.

    Reflection provides objects (of type Type) that encapsulate assemblies, modules and types. You can use reflection to dynamically create an instance of a type, bind the type to an existing object, or get the type from an existing object and invoke its methods or access its fields and properties. If you are using attributes in your code, Reflection enables you to access them. For more information, see Attributes.

    In addition to the Reflection, please refer to the LINK below.

    Reflection in C# Tutorial

    Reflection (C# Programming Guide)

    Problem with struct

    Regards,

    Xun


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Monday, June 2, 2008 8:50 AM
  • My Question is

    Is it possible to embed a form inside another form?

    Thanks in Advance!!!
    Monday, June 2, 2008 10:41 AM
  •  

    Hi SrinivasanMandiHariharan,

    Sorry, I never try to do it before, as far as I know, A COM component can be in a DLL or exe file, perhaps you can try to create a .Net COM application to do it.

    In addition the .Net COM, please refer to the LINKs below.

    http://msdn.microsoft.com/en-us/library/zsfww439.aspx

    http://www.codeproject.com/KB/COM/nettocom.aspx

    Regards,

    Xun


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    • Marked as answer by jack 321 Tuesday, June 3, 2008 1:46 AM
    Monday, June 2, 2008 11:30 AM
  • Yes it´s possible.

    You may include a Form within another Form

    childForm.TopLevel = false;
    childForm.Parent = Form1;

    this may be part of the solution.

    Oscar A Medina S - Colombia
    MCPD: Enterprise Applications Developer | MCTS: Sql Server 2005
    • Edited by omedsaenz Monday, June 2, 2008 3:30 PM Error typed
    Monday, June 2, 2008 3:28 PM
  • For questions and discussions relating to Windows Forms development, please see http://forums.microsoft.com/msdn/ShowForum.aspx?ForumID=8&SiteID=1

    http://www.peterRitchie.com/blog
    Monday, June 2, 2008 3:48 PM
    Moderator