Open A Form In Project B From A Form In Project A?

Nov 20, 2009

I am using VS 2008 and I have a solution with multiple projects. I would like to know how to open a form in project B from a Form in project A. The solution starts with the form in project A.I have tried the following and it does not produce the expected behaviour:In Form A I have added a reference to the Project B. The following code is in a form in project A. appraisal is a form in project B.

Dim appraisalForm As New appraisalApp.appraisal
appraisalForm.Show()

The above solution works to a degree. As the form is instantiated in Project A, I cannot reference any of the items in the form in Project B as I could if the Form in project B was instatiated through startup.

View 3 Replies


ADVERTISEMENT

In-project Components Fail If Project Is Opened With In-project Component Used On Initially Open Form?

Dec 20, 2010

Public Class ExtendedDateTimePicker Inherits DateTimePicker

View 5 Replies

VS 2008 - Timer - Project A References Project B So Can Open A Large Form In Project B

May 5, 2010

For reasons that are beyond my control, I have three Projects. Projects A and B reference project C. Project A references project B so that it can open a large form in project B. I now need to open that large form from project C, but VB won't allow me to add a reference from C to B because that would create a circular dependency. I found a way around it, though. I created a Timer in A, and when I opened C from A, I passed in that timer. When the user performs a certain action, I enable the Timer from A, and this causes C to open B for me.

View 2 Replies

Open (2nd) Form From (1st) Form In Multi Project Solution In VB

May 14, 2011

I have read a lot of the prior questions/answers on this topic but it only took me so far. I have a solution to which I added 2 additional programs. These 2 added programs in essence create a PDF2TIFF converter using GS. I wish to call that form and use it as a utility from my main program. After reading other answers in the forum, I added these two programs as references in the main program and imported everything available, into the main program. I have what seems to be a correct build order set up. I want to open the form in the utility project(s) from a link on my main form. I tried a few things but the only way I could write the code without errors was to instantiate the second program then call that with a button click.

[Code]....

View 5 Replies

Open Certain Form In A Project?

Mar 28, 2010

I have made a small program with a few forms that do not run in order 1,2,3

The login form is form 2.

how do I make sure that the login screen opens 1st?

View 5 Replies

.net Project And Apllication Do Not Open Form?

Aug 21, 2011

do not know if what has previously been faced with this problem but I can not open my vb.net project and Windows Forms.Here's what it's written when I try to open the Visual Basic 2008 application.

Unable to read the project file links like mediafire.vbproj and after that throws the table next project package load failure: (So I tried to reinstall anything anyway.And even tried to create a Setup Wizard program is not open.And one more thing I do not like what I do not know how to create a program installer wizard so that the program is open without any Visual Basic program in 2008 and hidden codes.Is it possible to do this? If so how to do that ?

View 1 Replies

Open A Form From A Different Project Using A Button?

Jun 5, 2010

i have several projects and one main project.i want to open a form from a different project using a command button in the main form of the main project.i am using Microsoft Visual Basic 2010 Express.the language i am using is VB.NET?

View 10 Replies

Open A Form Which Is In A Folder (within Same Project)?

Oct 25, 2010

In my project i have created few folders to better structure my forms.. my problem is how can i call up (open) a form in a different folder.

eg. Form1 is located in main directory, how to open form2 which is located in a folder called Folder2 (within same project)

View 1 Replies

VS 2010 : Open A Form From A Different Project?

Jun 14, 2011

I'm running VS2010, and I'm trying to open (or show) a form from a different project.My solution contains 3 projects: #1-The main program, #2-a custom control DLL, #3-a report generator project.I want to use a menu item click in project #1, to open (Load & show) a form in project #3. I can't figure out how to programmatically get access to the a form in a project #3.

View 3 Replies

VS 2010 Renamed Form And Now Unable To Open The Project?

Jul 20, 2011

I have made the bad mistake of renaming FORM1 directly on the Solution explorer with the result of me unable to open the form in both designer and code.

The error is:

The Form1.vb does not exist. It may have been renamed, moved or deleted

View 1 Replies

Reference Windows Form Project From Another Windows Form Project In Same Solution

Dec 8, 2010

I have a solution with several projects most of which are code or control libraries. I have a main windows forms application that references and uses these libraries. What i am trying to do is create a 2nd windows application that extends the main one, but i would like to be able to deploy them as separate exe's.

When i try to add a reference to the new app referencing the main app; all seems fine until i try to run the new app i get several error msgs similar to below:

Error 1 Could not find file 'ADODB.dll' referenced by assembly 'D:Visual Studio 2005ProjectsXXXinDebugXXX.exe.manifest'. <newAppName>

i have tried adding references to all the dll's in the error messages and they are still listed when i try to run the new app. I thought of a few work arounds but they require user changes to maintain separate exe's at deployment. I would like to avoid this if possible.

View 2 Replies

Accessing A Form In One Project From Another Project?

Feb 11, 2010

I have a number of projects in a solution and want to be able to access forms in all of the projects from a form in the main project. I thought of doing this to keep each segment of the solution manageble. If something goes seriously wrong in one of the projects it is easier to fix that starting from scratch with the whole solution.I have found numerous suggestions on this topic from "It cannot be done" to suggestions that do not work. The closest that I have come and still does not work is as follows:

Imports VAT_List.Form1 'This is Form1 in Project 2
Public Class Form1 ' This is Form1 in the Main Project
Private Sub ListsToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListsToolStripMenuItem.Click
'Imports VAT_List.Form1

[code]....

View 2 Replies

Add An Existing Form Of Old Project To A New Project?

May 20, 2010

How to add an existing form of old project to a new project? Which extension type files to be added to work that existing form correctly?

I actually need frmContacts.vb (because a lot of textboxes and other controls are there) which I have added. Since it doesn't show any existing controls on form, I added other following files as well.

1) frmContacts.vb
2) frmContacts.Designer.vb
3) frmContacts.Designer.vb

View 1 Replies

How To Add An Existing Form Of Old Project To A New Project

Jun 22, 2010

How to add an existing form of old project to a new project? Which extension type files to be added to work that existing form correctly?

I actually need frmContacts.vb(because a lot of textboxes and other controls are there) which I have added now to my New Project. Since it doesn't show any existing controls on form, I added other following files as well. Though there is no use.

1) frmContacts.vb
2) frmContacts.Designer.vb
3) frmContacts.Designer.vb

View 2 Replies

How To Close One Form In A Project And Note The Entire Project When Using Me.close() In Visual Studio 2008

Mar 22, 2010

I am really new to Visual Studio and VB and I am having trouble closing a single form:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Me.Close()
End Sub

When I use Me.close() associated with this button it closes the entire project and not just the single form can anyone.

View 2 Replies

Close Project And Open Another In Multi-Project Solutions?

Apr 11, 2012

I am developing a Multi-Project solution (A, B) in Visual Studio 2008.

I need to run a second project from the start up one and then the first project should be closed.

The matter is that I want to Exit the A.exe and kill the process and the dll that are depending on it. And then Run the B.exe.

View 4 Replies

VB 2010 Project - When A Timer In The First Form(form1) Ticks A Progress Bar In The Other Form Goes Up By 1

Aug 11, 2011

Im doing this project but u have a problem. im trying to make it so that when a timer in the first form(form1) ticks a progress bar in the other form goes up by 1.

View 2 Replies

VS 2010 Set Form Size Longer But After Building Project Form Re-sizing

May 1, 2010

I'm trying to set form size longer, but after building the project form resizing.

View 1 Replies

Open A Project Using A Command Button From Another Project?

Mar 27, 2012

I have a number of independent visual basic applications. Now I want to develop a window that will have command buttons to open each of the applications. How do I write the code in these buttons?

View 2 Replies

Button Not Working In One Form / But Does On Another Form In Same Project

May 3, 2010

I am getting some wierd behavior in VS2008. I have the following code in 2 different forms in the same project. One form pops up the help as you would expect when you click the Help button, while the other form does absolutely ntohing when the Help button is clicked.[code]

View 4 Replies

Open Another Project From Within An Existing Project?

Jul 25, 2011

If there already is a thread for this, then appologies.I have a VB project which displays a message to the User and has a button they can click on to continiue.What i would like is for when the user clicks this continue button another VB app opens up All straight forward so far.The problem is that in the second app id like to open, i have a few different tab pages and id like to be able to open the second app on a specific tab page (Which is not the default when the app opens). Is this possible?

View 3 Replies

Include Contact Project Into Another Project / Add More Items To Database / Forms In New Project?

May 6, 2009

I have a project that I have created, it something like a contact database.It is complete with its own sql server database, and controls and forms.I kinda of understand that I can include this project into another project.This is the tricky part,Can I include my contact project into another project and add more items to the database and forms in a new project?What I'm after is like using classes.My contact database would be like the base class, and the new project would be adding more features to that project.

View 10 Replies

Add Project Setup Project For Project For Visual Studio 2008?

Nov 15, 2010

i was developing Voice Chat Application in visual Basic .NET 2008 i try a lot methods to make installer for it :

1- i add Project Setup Project for my Project for Visual Studio 2008 Deploy & setup Type Projects and make it with output option and detect dependices

2- i try make it with Setup Factory 8.2.1

3- i try with MSI Factory 2.0

4 i try with Setup Factory 6.0

and after making installer copying it to my test virtual Machine or my friend lap and install it i get this error when try to run my application :

[Code]...

View 3 Replies

Add A Form From Another Project?

Sep 21, 2010

To start I already removed this form and created a new one, but I'm curious why this happened and what I did wrong.

1. I created a new project and copied several forms and files from an existing project using the "Add Existing Item" function.

2. I had one form that would show but had no data.

3. I call the form like this[code]...

View 5 Replies

Cannot Add A Second Form To A Project?

Oct 19, 2009

I'm using VS.NET 2005 PRO, On my most recent WINFORMS project when I try to add a second form to the project I get a pop up that says object reference not set to instance of object. This is coming directly from the add new item template box, not sure what's happening, never had this before,

View 3 Replies

Cant Get To The Second Form From Project?

May 11, 2010

at my visual studio class we made a data base program! i was using VB 2008 on a win xp x86 machine i copy the project on a usb stick because i want at home to work on visual aspects! my pc have win 7 x64 and now my project doesnt work! it shows me an error i cant get to the second form from project!

[code]...

View 14 Replies

Accessing A Form In A Different Project?

Nov 30, 2011

how to access a form in a different project but within the same solution? Say I click a button on one form to display another form which is a part of the same solution but resides in a different project.

View 11 Replies

ActiveX Project With Win Form?

Nov 1, 2010

I develeped VB.NET solution composed of two projects: 1 Win Form project and 1 class library (.dll) project.I need to import all the .NET solution to a "Lab View" project ("National Instruments" product) as an ActiveX object (or suitable LabView object to import from .NET as well). The "Lab View" view interface shoulf have a button which call the WinForm interface.Is it possible? I think that there could be some problems with Win Form project, that is difficult to set inside an ActiveX .NET project.

View 2 Replies

Add Form To Existing Project?

Feb 24, 2008

I am working on the following scenario: I got an existing VB.net application. Now I have to add a login mechanism to it. What I want to do is, add another form to my project and show it before the 'real' form of the program is displayed, so that it can handle the login procedure.

View 3 Replies

Calling Form Of Another Project?

Jan 19, 2011

Is there any specific way of calling the form of another application.My main project is a WPF application.From that it is calling another application is Vb.NET.. This is done by creating a process and then calling the exe.

Dim fp1 As New Process()
fp1.StartInfo = New ProcessStartInfo("Location of the exe")
fp1.Start()

Now the problem which I am facing is that from that exe I need to call a specific form in the WPF application.

View 2 Replies







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