Form Copying (VB.Net 2005)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?am9obmI=?=

    Form Copying (VB.Net 2005)

    Hi All
    How do I copy a Form within a project?

    TIA

    johnb
  • Anil Gupte/iCinema.com

    #2
    Re: Form Copying (VB.Net 2005)

    Right Click on the Form, click Copy. Repeat Right Click and click Paste?

    Easy enough? Even easier, click on the form, then Ctrl-C, Ctrl-V.

    Cheers,
    --
    Anil Gupte
    Innovate with UsLeading the Way in Advanced Technology Solutions Discover state-of-the-art services in logistics, databases, and AI designed for evolving



    "johnb" <johnb@discussi ons.microsoft.c omwrote in message
    news:1016675F-7E42-4A61-AC3B-3625931CDBBF@mi crosoft.com...
    Hi All
    How do I copy a Form within a project?
    >
    TIA
    >
    johnb

    Comment

    • =?Utf-8?B?am9obmI=?=

      #3
      Re: Form Copying (VB.Net 2005)

      Cheers for the responce Anil. Er...Right clicking on the Form gives me "View
      Code", "Lock controls" and "Properties " and right clicking on the Form in
      the Solution Explorer give copy but no Paste.

      Were it so simple I'd should have worked it in this rusty old brain of mine.
      I believe there is a load of hidden code that gets regenerated on each
      rebuild which refers back to the original form. And this where I'm lost

      "Anil Gupte/iCinema.com" wrote:
      Right Click on the Form, click Copy. Repeat Right Click and click Paste?
      >
      Easy enough? Even easier, click on the form, then Ctrl-C, Ctrl-V.
      >
      Cheers,
      --
      Anil Gupte
      Innovate with UsLeading the Way in Advanced Technology Solutions Discover state-of-the-art services in logistics, databases, and AI designed for evolving



      "johnb" <johnb@discussi ons.microsoft.c omwrote in message
      news:1016675F-7E42-4A61-AC3B-3625931CDBBF@mi crosoft.com...
      Hi All
      How do I copy a Form within a project?

      TIA

      johnb
      >
      >
      >

      Comment

      • rowe_newsgroups

        #4
        Re: Form Copying (VB.Net 2005)

        On Jun 25, 5:13 am, johnb <jo...@discussi ons.microsoft.c omwrote:
        Hi All
        How do I copy a Form within a project?
        >
        TIA
        >
        johnb
        Depending on the Form, you might just want to abstract things back and
        follow an inheritance model.

        Thanks,

        Seth Rowe [MVP]

        Comment

        • rowe_newsgroups

          #5
          Re: Form Copying (VB.Net 2005)

          On Jun 25, 7:06 am, johnb <jo...@discussi ons.microsoft.c omwrote:
          Cheers for the responce Anil.  Er...Right clicking on the Form gives me"View
          Code", "Lock controls" and "Properties " and  right clicking on the Formin
          the Solution Explorer give copy but no Paste.
          >
          Were it so simple I'd should have worked it in this rusty old brain of mine.
          I believe there is a load of hidden code that gets regenerated on each
          rebuild which refers back to the original form. And this where I'm lost
          >
          "Anil Gupte/iCinema.com" wrote:
          Right Click on the Form, click Copy.  Repeat Right Click and click Paste?
          >
          Easy enough?  Even easier, click on the form, then Ctrl-C, Ctrl-V.
          >
          Cheers,
          --
          Anil Gupte
          Innovate with UsLeading the Way in Advanced Technology Solutions Discover state-of-the-art services in logistics, databases, and AI designed for evolving



          "johnb" <jo...@discussi ons.microsoft.c omwrote in message
          news:1016675F-7E42-4A61-AC3B-3625931CDBBF@mi crosoft.com...
          Hi All
          How do I copy a Form within a project?
          >
          TIA
          >
          johnb
          Personnally, I never trusted copy and pasting a form to reproduce it.

          My standard model is to add a new form object, and copy / paste the
          controls and code behind from the old form into the new one. The bad
          thing is that you'll still need to set the form properties manually.

          Thanks,

          Seth Rowe [MVP]

          Comment

          • =?Utf-8?B?am9obmI=?=

            #6
            Re: Form Copying (VB.Net 2005)

            Hi Seth

            Thanks for the feedback I'll try that!

            johnb

            "rowe_newsgroup s" wrote:
            On Jun 25, 7:06 am, johnb <jo...@discussi ons.microsoft.c omwrote:
            Cheers for the responce Anil. Er...Right clicking on the Form gives me "View
            Code", "Lock controls" and "Properties " and right clicking on the Form in
            the Solution Explorer give copy but no Paste.

            Were it so simple I'd should have worked it in this rusty old brain of mine.
            I believe there is a load of hidden code that gets regenerated on each
            rebuild which refers back to the original form. And this where I'm lost

            "Anil Gupte/iCinema.com" wrote:
            Right Click on the Form, click Copy. Repeat Right Click and click Paste?
            Easy enough? Even easier, click on the form, then Ctrl-C, Ctrl-V.
            Cheers,
            --
            Anil Gupte
            >www.keeninc.net
            >www.icinema.com
            >www.wizo.tv
            "johnb" <jo...@discussi ons.microsoft.c omwrote in message
            >news:1016675 F-7E42-4A61-AC3B-3625931CDBBF@mi crosoft.com...
            Hi All
            How do I copy a Form within a project?
            TIA
            johnb
            >
            Personnally, I never trusted copy and pasting a form to reproduce it.
            >
            My standard model is to add a new form object, and copy / paste the
            controls and code behind from the old form into the new one. The bad
            thing is that you'll still need to set the form properties manually.
            >
            Thanks,
            >
            Seth Rowe [MVP]
            >

            Comment

            Working...