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
ADVERTISEMENT
Dec 20, 2010
Public Class ExtendedDateTimePicker Inherits DateTimePicker
View 5 Replies
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
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
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
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
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
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
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
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
May 1, 2010
I'm trying to set form size longer, but after building the project form resizing.
View 1 Replies
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
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
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
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
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
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
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
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
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
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
Aug 3, 2009
I have a main form that i show at run-time (Form 1). While Form 1 is showing, I show another small (Form 2) form to provide the user with some additional options to chose from. You can see how I show this second form below in EXAMPLE 1. When the user is done with the second Form, I want to Hide it and return to the first form Form 1. However when the second form is hidden, it does not return me to the first form when I use the Show method for Form 1.
Note I am in development mode as I test this. When the second form hides, the first form stays collapsed at the bottom of my desktop. I can click on it and it will pop up and everything is fine. However, I cannot seem to get pleasing transition from Form 2 to Form 1 using the code in EXAMPLE 2. Note that I do not Hide Form 1 to begin with. I am assuming that this is why the Show method does not work. However I cannot figure out why it collapses in the first place. Is there a Focus property that I need to set for Form 1?
[Code]...
View 3 Replies
Jun 18, 2012
I am new to software development and need to develop a VB software for one of my projects. **I want to know how can I copy a form created in a project to another.I have copied the form from the old project and tried to paste it in to the new project. But I was failed. I have read one of the answer which have given regarding to another one's question. But unfortunately I am not in the standard to acquire the way I could do it.
View 1 Replies
Feb 21, 2012
For Each FRM As Form In Application.OpenForms MsgBox(FRM.Name) Next only getting open form name... i want all form name used in project
View 4 Replies
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
Dec 23, 2009
i want to make authentication form in my projcet and i nead to Display the project form names in listbox as as dynamic
View 1 Replies
Sep 9, 2010
I have a form in a C# project that I started and now I want to use that same form design in a new VB project I'm starting. Is there a way to "export" the form from C# and import it into my VB project? Obviously, I don't want the C# code behind the form, just the design.
View 1 Replies
Dec 22, 2008
My program has 2 project. One project has parent form, another project has child forms.My program has to get form name as a string from database, and then call the child form depends on the form name.
View 12 Replies
May 10, 2009
Is it possible to transfer a form into another project including class and GUI intact?
View 5 Replies
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