Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. C# Form

C# Form

Scheduled Pinned Locked Moved C#
csharpquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RichardRead
    wrote on last edited by
    #1

    I have a form which I want to use in several projects - is it best to keep the code for this in as seperate directory and add it to my projects for building, or should I build it as a library? Which is best - If it was a code module I would go for the library option but I am not sure with a form. Richard

    S P Mircea PuiuM 3 Replies Last reply
    0
    • R RichardRead

      I have a form which I want to use in several projects - is it best to keep the code for this in as seperate directory and add it to my projects for building, or should I build it as a library? Which is best - If it was a code module I would go for the library option but I am not sure with a form. Richard

      S Offline
      S Offline
      Sushant Duggal
      wrote on last edited by
      #2

      Hi Create a windows control for that form. Regards,

      Sushant Duggal.

      1 Reply Last reply
      0
      • R RichardRead

        I have a form which I want to use in several projects - is it best to keep the code for this in as seperate directory and add it to my projects for building, or should I build it as a library? Which is best - If it was a code module I would go for the library option but I am not sure with a form. Richard

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #3

        If the form is going to be reused in several different applications, then it is better to encapsulate it in a library. You can use inheritance to change the form when it is in a new application.

        the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
        Deja View - the feeling that you've seen this post before.

        1 Reply Last reply
        0
        • R RichardRead

          I have a form which I want to use in several projects - is it best to keep the code for this in as seperate directory and add it to my projects for building, or should I build it as a library? Which is best - If it was a code module I would go for the library option but I am not sure with a form. Richard

          Mircea PuiuM Offline
          Mircea PuiuM Offline
          Mircea Puiu
          wrote on last edited by
          #4

          You could also reference the file through a link in your project. But this has the drawback that you have to recompile other projects when something changes.

          SkyWalker

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups