Calling a form in second project

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John

    #1

    Calling a form in second project

    Hi

    Can I run a from in one project from a second project, both projects being
    in the same solution?

    Thanks

    Regards



  • =?Utf-8?B?RmFtaWx5IFRyZWUgTWlrZQ==?=

    #2
    RE: Calling a form in second project

    Yes, you can add a refernce to project1 in project two, then create an
    instance of a form contained in project 1.

    "John" wrote:
    Hi
    >
    Can I run a from in one project from a second project, both projects being
    in the same solution?
    >
    Thanks
    >
    Regards
    >
    >
    >
    >

    Comment

    • Jack Jackson

      #3
      Re: Calling a form in second project

      On Thu, 10 Apr 2008 20:42:59 +0100, "John" <info@nospam.in fovis.co.uk>
      wrote:
      >Hi
      >
      >Can I run a from in one project from a second project, both projects being
      >in the same solution?
      >
      >Thanks
      >
      >Regards
      Yes.

      Dim frm As New SomeForm

      frm.Show()
      or
      frm.ShowDialog( )

      Comment

      • John

        #4
        Re: Calling a form in second project

        Even if the form is in the other project in the same solution?

        Thanks

        Regards

        "Jack Jackson" <jjackson@cinno vations.netwrot e in message
        news:61tsv35m6d ih4t0h6dp1kdsgk n5a93327p@4ax.c om...
        On Thu, 10 Apr 2008 20:42:59 +0100, "John" <info@nospam.in fovis.co.uk>
        wrote:
        >
        >>Hi
        >>
        >>Can I run a from in one project from a second project, both projects being
        >>in the same solution?
        >>
        >>Thanks
        >>
        >>Regards
        >
        Yes.
        >
        Dim frm As New SomeForm
        >
        frm.Show()
        or
        frm.ShowDialog( )

        Comment

        • Lloyd Sheen

          #5
          Re: Calling a form in second project


          "John" <info@nospam.in fovis.co.ukwrot e in message
          news:OJX3Mf0mIH A.2268@TK2MSFTN GP02.phx.gbl...
          Even if the form is in the other project in the same solution?
          >
          Thanks
          >
          Regards
          >
          "Jack Jackson" <jjackson@cinno vations.netwrot e in message
          news:61tsv35m6d ih4t0h6dp1kdsgk n5a93327p@4ax.c om...
          >On Thu, 10 Apr 2008 20:42:59 +0100, "John" <info@nospam.in fovis.co.uk>
          >wrote:
          >>
          >>>Hi
          >>>
          >>>Can I run a from in one project from a second project, both projects
          >>>being
          >>>in the same solution?
          >>>
          >>>Thanks
          >>>
          >>>Regards
          >>
          >Yes.
          >>
          >Dim frm As New SomeForm
          >>
          >frm.Show()
          >or
          >frm.ShowDialog ()
          >
          >
          What type of project is the second project?

          LS

          Comment

          • John

            #6
            Re: Calling a form in second project

            winform both

            "Lloyd Sheen" <a@b.cwrote in message
            news:eWJewW1mIH A.4480@TK2MSFTN GP03.phx.gbl...
            >
            "John" <info@nospam.in fovis.co.ukwrot e in message
            news:OJX3Mf0mIH A.2268@TK2MSFTN GP02.phx.gbl...
            >Even if the form is in the other project in the same solution?
            >>
            >Thanks
            >>
            >Regards
            >>
            >"Jack Jackson" <jjackson@cinno vations.netwrot e in message
            >news:61tsv35m6 dih4t0h6dp1kdsg kn5a93327p@4ax. com...
            >>On Thu, 10 Apr 2008 20:42:59 +0100, "John" <info@nospam.in fovis.co.uk>
            >>wrote:
            >>>
            >>>>Hi
            >>>>
            >>>>Can I run a from in one project from a second project, both projects
            >>>>being
            >>>>in the same solution?
            >>>>
            >>>>Thanks
            >>>>
            >>>>Regards
            >>>
            >>Yes.
            >>>
            >>Dim frm As New SomeForm
            >>>
            >>frm.Show()
            >>or
            >>frm.ShowDialo g()
            >>
            >>
            >
            What type of project is the second project?
            >
            LS

            Comment

            • Lloyd Sheen

              #7
              Re: Calling a form in second project


              "John" <info@nospam.in fovis.co.ukwrot e in message
              news:etTUCc1mIH A.2396@TK2MSFTN GP02.phx.gbl...
              winform both
              >
              "Lloyd Sheen" <a@b.cwrote in message
              news:eWJewW1mIH A.4480@TK2MSFTN GP03.phx.gbl...
              >>
              >"John" <info@nospam.in fovis.co.ukwrot e in message
              >news:OJX3Mf0mI HA.2268@TK2MSFT NGP02.phx.gbl.. .
              >>Even if the form is in the other project in the same solution?
              >>>
              >>Thanks
              >>>
              >>Regards
              >>>
              >>"Jack Jackson" <jjackson@cinno vations.netwrot e in message
              >>news:61tsv35m 6dih4t0h6dp1kds gkn5a93327p@4ax .com...
              >>>On Thu, 10 Apr 2008 20:42:59 +0100, "John" <info@nospam.in fovis.co.uk>
              >>>wrote:
              >>>>
              >>>>>Hi
              >>>>>
              >>>>>Can I run a from in one project from a second project, both projects
              >>>>>being
              >>>>>in the same solution?
              >>>>>
              >>>>>Thanks
              >>>>>
              >>>>>Regards
              >>>>
              >>>Yes.
              >>>>
              >>>Dim frm As New SomeForm
              >>>>
              >>>frm.Show()
              >>>or
              >>>frm.ShowDial og()
              >>>
              >>>
              >>
              >What type of project is the second project?
              >>
              >LS
              >
              >
              Just created two projects. A form in each. Button on first (main) form
              created new form of type from the second app. Made the owner of the new
              form the main form. Then show. All works. If I close the main form then
              all new forms (caused by button click) are closed. If I minmize the
              mainform then all forms are minimized.

              Seems to work fine.
              LS

              Comment

              Working...