A thing which i've discovered with vb2010 is that you can't share files like a form or something that way it comes at least. If you attach a form or usercontrol from a different folder it will automatically copy it into the current project folder and then save to that. How can i stop vb from doing this? It won't always be but in this case i need to share a few forms among multiple projects and it would be a royal pain to have to copy them each time manually.
Compile the forms into a separate library (.dll) and refrence that library from each project that needs those forms.
"Ok, my response to that is pending a Google search" - Bucky Katt. "There are two types of people in the world: Those who can extrapolate from incomplete data sets." - Unk. "Before you can 'think outside the box' you need to understand where the box is."
It's not like i'm reusing code within several different programs it's just that i've a rather large program. What i've been doing in vb6 is have each form (each is a seperate data editor) in its own project. That way i can work on one part of the program in one project and then it will also be changing the main project, that's the one where everything's connected and it all works. I'm not opposed to using .dlls my only concern is, you don't have to register them on computers do you? I'm asking this because this project is being worked on by multiple people over a network. Also, can usercontrols can be compiled to a .dll too? Even better, can i have a project of all my usercontrols, make on big dll, reference the one dll and have all the controls for my project? Thanks for replying and giving help.
I ended up answering my own question (at least i'm pretty sure) as to whether you can have usercontrols in dlls. I've now run into a new problem. I've made a class library project and i've got a usercontrol in it. My problem is that i can't do anything with graphics whatsoever. I've attached it so that everybody can check it out to see what need fixing. By graphics i mean everything from a graphics object to a color. Another problem i had was when i had another project attached to test my control with (it said to do this). It worked fine (except for the graphics issue) and i was able to drop my control onto the other project's form. When i tried to run it i got an error which said that the control's version of framework was different or something. Does anybody know what happened there? I'm completely new to the concept of sharing my code with .dlls but i really like it.