Results 1 to 3 of 3

Thread: sharing Vb.net form on 2 projects?!

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2005
    Posts
    334

    sharing Vb.net form on 2 projects?!

    I want to create a test and live version of a project, and am planning to use the OneClick Deployment....
    Currentlly I have the test version, how do I create a share to this project (so basically the live version is the exact same as the test version)
    I have tried added existing items, but this creates a copy of the form..I dont want this-if I make a change in test I want it 2 automatically do the change on live version to?????

    Thank you

  2. #2
    Code Monkey wild_bill's Avatar
    Join Date
    Mar 2005
    Location
    Montana
    Posts
    2,993

    Re: sharing Vb.net form on 2 projects?!

    One way would be to put the form in its own class library, and reference it from each application. But usually I don't create seperate applications for test and production. Usually I'll add configurable data to the form or config file, to run in a test or a production environment.

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: sharing Vb.net form on 2 projects?!

    Quote Originally Posted by pame1la
    I have tried added existing items, but this creates a copy of the form..I dont want this-if I make a change in test I want it 2 automatically do the change on live version to?????
    Doesn't this defeat the purpose of having two separate environments. If you make a change in test, and it blows up, so what? No one will ever know that but you. But, if production get automatically updated everytime you make a change in test, you run the risk of rolling out faulty code to your users.

    You should ALWAYS have to make the change in both, but not in production until it actually works in test.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width