Share Forms Between Projects?

Dec 19, 2009

I've recently noticed that a solution can contain multiple projects. I'd like to know if I can create a form that exists in multiple projects, so i can edit one form (or class) instead of six, and have it published in each one of them separately? I hope that makes sense....I seek not answers, but understanding, that I may not solve, but learn.
What good is a fish without the skill to catch it?

View 4 Replies


ADVERTISEMENT

Use Two Projects And Share Files?

Sep 11, 2010

I got two projects. GUI/Console and I want to have them in the same project directory with two different projects so:

C:Project1GUI.VBPROJ
C:Project1Console.VBPROJ

The problem is simple: It will overwrite the My Project directory, how to change this?

View 3 Replies

Share Settings Variables With Projects?

May 27, 2009

I have multiple Projects in one solution and i want to share settings variables with projects how i can?

View 4 Replies

Share The Main Module Between Projects?

Oct 26, 2005

Hi: How can I share the Main Module1 between projects? I have project1 in vb.net and contains Module1 (Sub Main of the application) project2 in C# in project2 I have a form1 class that contains a subroutines that need to reference 6 variables that are declared and instantiated in the project1 in the main Module1. Module1 at present is been compiled as Class Library, plus will be a reference of project2 and because I need this variables referenced from project1 it wont compile of course because they are not declared.

View 2 Replies

Share WinForms And Code Between 2 Projects?

Jun 7, 2010

I have a working Windows Forms app (split into an EXE and a few DLLs). Now I've been asked to look at creating another app (MyAppLite) that has only a very small subset of the functionality. Think of it as similar to MS Word Viewer vs. MS Word.

Everything that I need to build MyAppLite is contained in the main solution - essentially I need to use a couple of the WinForms and whatever bits in the DLLs they call into.

What would be the best way to do this?

I was thinking of creating another Project in my solution for MyAppLite, then adding the necessary source files as links (using Add Existing Item > Add As Link in Solution Explorer).

I definitely wouldn't want to maintain 2 copies of the source code. FYI it's a .NET 2.0 VB app, using VS2008.

View 2 Replies

Share/access Xsd In Different Projects In A Solution?

Nov 16, 2010

Am I able to share/access xsd in different projects in a solution? If so, how do I do it. If not, what are the other options.

What I intend to do is have the xsd in the DAL project and have the business logic checkings/validations in BLL project.

View 3 Replies

VS 2010 - Saving Projects To Network Share

Jul 13, 2011

I've had this problem with both VS 2010 and Visual Web Developer 2010. I want to save my projects on a network share (which I have as a mapped drive), because our network drives are backed up daily. For some reason though, VS only shows local drives when I try to save a project - all my network drives do not show up.

View 1 Replies

Forms :: Calling Forms Across Projects Within The Same Solution?

Jun 1, 2010

I have 5 projects within the same solution file, Im trying to access a form that is part of one of the projects from my startup project.I have looked through the earlier threads and most of them deal with calling forms from within a project.To my understanding ive correctly added the projects to the solution file from File --> Add --> Existing Projects.I have also referenced my Project2 from Project1 but still the intellisense does not let me access form1 of project2 from project1.

View 3 Replies

How To Share DataSet Among Two Forms

Jan 13, 2009

I'm new to VB2008 and SQL Server. I have two forms (frmCustomer and frmDetail). The frmCustomer has a datagridview containing general data of customers, and a button to open frmDetail, which contains each customers detail information. All data modification is done on frmDetail (add, delete, and edit). Currently, both forms are binded to the dataset (same table). When the two forms are loaded, each form performs a FILL function that retrieves the data from SQL Server. In addition, all modifications done on frmDetail does not show up on frmCustomer until I perform the FILL function again on both forms. Seems like I'm maintaining 2 sets of data from the same table, and I think I'm doing more work than I have to. I'm sure there are ways to make this easier, such as bind both forms to a single dataset, so I don't have to do everything twice.

View 1 Replies

How To Share Variables Between Forms

Feb 17, 2012

Is it possible to share subscripted variables and their data between forms? So far I can't see the variables I made public in one form, in a second form.

View 5 Replies

Share Variables With Other Forms?

Mar 6, 2010

Say I have public string variable called "_Test" on Form1, how can I allow Form2 to edit/read the variable from that form? I tried putting this on Form2:

Public _Test as String = Form1._Test

But if I start Form2 without Form1 being open, it gives me an exception.

View 4 Replies

Share A String With Multiple Forms?

Apr 13, 2009

I need to share strings (array) with more then one form.

View 3 Replies

VS 2010 Share A Menu Bar Between Two Forms?

Jun 17, 2010

I'm writing a small software similar to the calculator in Windows, the calculator in Windows has a menu bar; in the menu bar, you can find "scientific" and "standard" mode; once you select different mode, your form will be changed, but the two forms still share the same menu bar.

I want to create the same effect of this:

1. Two forms, only one is visible at any time

2. The menu bar on the top of the two forms should be shared between these forms

I just started learning VB for 2 weeks, I'm not sure my thinking can be achieved by VB, if not

View 4 Replies

VS 2005 Where To Declare A Class To Share Between Two Forms?

Aug 24, 2011

There are two forms, first form list's the employees and the second form is used to add,edit the employee record. So to pass the information between the two forms i want to use the Employee Objects.To do so, where should i declare the Employee Class?

View 6 Replies

VS 2010 : Share And Edit Variables Between Forms?

Jul 7, 2011

how to share and edit variables between forms? I want the user to be able to enter a value into a textbox and the program store it and then load another form and do calculations and display answers but I can't get it to work.

View 2 Replies

Copy Forms From Other Projects?

May 20, 2009

ok.. I'm not going to pretent that I know all the inner workings of the windows generated code.. but it was lots easier on vb6.. so I have a program that I wrote.. one for one version of our product and one for a newer one.. the config screen is very similar
from A to B.. so now I'm trying to make one version that has A and B config screens and I'll show one or the other based on some other setup.. so I just did add existing and pulled in the config form from the other project.. but now I get lots of these type errors

[Code]....

View 3 Replies

Using Forms In Other Projects Same Solution?

Nov 18, 2009

I have solution that has main app & userManagement app in the main app i referenced the userManagement app and I can see the class in my main app userManagement is a userLogin etc. how can I use the forms from userManagement project in main project??

in formLoad in main app If userID = "" then 'show formLogin from userManagement end if

View 2 Replies

Forms :: Share Data Between Forms (as Opposed To Passing Data)

Nov 26, 2011

Quite a few threads on passing data from one form to another, but I'm struggling to work out how to share data between the two - back and forth.

For example:

Class1 is a class with 10 string properties

Form1 has 10 labels ("Label1", "Label2" etc) and a [Configure] button.
Form2 has 10 textboxes and a [Apply] button.

I want to load with Form1, and create an instance of Class1. Click the Configure button and load Form2, passing Class1. On Form2 I want to manually fill in the 10 textboxes and hit Apply. The Apply should update the Class1 instance and close the form.

Form1's Label controls should then be updated with the data from the Class1 instance.

I'm fine creating the forms and classes, as well as passing the class into Form2 with a custom Sub New(EmptyClass as Class1) constructor. This gets the empty class into Form2, but how can I get the populated class back to Form1?

As Form1 already exists I don't want to create a new instance with another custom Sub New(PopulatedClass as Class1)

It's also key to be able to use the Form2 multiple times, basically ending up with a Data class being displayed as part of Form1 but updated using Form2? (For example if the Class has already been created and populated with data when it's passed back to Form2 for the second time I would pre-load the Textboxes with the values already in the class).

View 3 Replies

Multiple Projects And Opening Forms?

Apr 29, 2010

Over the past months I have been working on small windows forms applications and learning vb as i go along. The aim was to pull these altogether into one big application.

I am now at the stage of pulling these together I have created a new project (called MainMenu) and designed all the buttons and interface. I have added my other projects (SISApp, CURApp) to this project. File > Add > Existing Project. I can see these projects in the solution explorer.

Now my problem. How can show Form2 in the SISApp project when I click ButtonX in the MainMenu project.

I dont just want to show Form2, i want all the functionality and the database connection in form2 to also work etc.

View 1 Replies

Pass Data Between Forms In Different Projects In One Solution?

Apr 21, 2011

I need to pass data (a user name) from a logon form in one vbproj to a form in another vbproj that are compiled in one solution. Public Read Only does not seem to work.

View 2 Replies

Close Projects Or Forms Than Called By ((shell)) Function?

Aug 17, 2010

how to close projects or forms than called by ((shell)) function in vb6?

View 1 Replies

IDE :: Copy Forms With Controls To Programmatically Created Projects?

May 7, 2012

I have programmatically created a new project from a windows application. I now want to programmatically add a form to this project that already has some data bound controls on it.

View 4 Replies

Removing Projects From VB2008 Start Page Recent Projects List?

Mar 15, 2009

Removing projects from VB2008 start page recent projects list. The above list is getting clogged. How do I remove items from this list?

View 3 Replies

Add A Bargraph To Forms Which Will Show A Trend In Dollars Spent For Certain Projects (versus The Forecasted Amounts?

Apr 9, 2009

I'm trying to add a bargraph to one of my forms which will show a trend in dollars spent for certain projects (vs. the forecasted amounts). I wanted to know if there is a control or a function in VB.NET 2008 that I can use to build this graph in.... My only other thought is to use pictureboxes as bars (with background filled colors) and adjust their heights based on a ration or height to dollar amt... I don't mind doing this, but I wanted to know if there is a more intelligent way of building this... maybe some graph wizzard like in excel.

View 1 Replies

How To Only Share In Facebook

Feb 27, 2012

simple way to share, only share, in facebook? I see alot of libraries but they come with alot of code and without documentation.

View 2 Replies

How To Share Application In LAN

Dec 14, 2009

How to start vb.net application from a shared file in LAN I mean that the application is installed in my PC but I want other users to get access to this application using my shared file.

View 8 Replies

Share Folders Over Net?

Jun 6, 2011

i am working on a app. and i need to know how can i share floders that the app will use to save flies over the net. i was thinking about crearting a data base that would save all the files on to it , and then share the data base with fellow co workers, but i do not know how to add a excel file or word doc. in the database. i am pretty new to all of this so any help would be great. the app is writen in visual studio 2010.

basical it will let the user access the file he needs to compelte his work off shore. the files are created and saved as he needs them. once he is finished, i need the app to send the floder to some type of server ( dont have a server yet) so that the office and other co workers can see the files when they run the app.

View 1 Replies

UNC Share Names / How To Get Them

Jun 11, 2009

I've looked in System.IO. but I can't find anywhere to get the unc share name of a path/drive.Anyone know how to get the unc share name of a folder, i.e. 'O:MyFolder'.

View 4 Replies

Way To Share A Folder

Feb 17, 2009

I have to do an application that share a folder and his sub folder.

This application have to run on Vista computer.

What's the best way for share a folder ?

View 1 Replies

2 Form Share Same Progress Bar?

Jun 21, 2010

can I have 2 form share the same progress bar? If so how does this work?

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved