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


ADVERTISEMENT

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

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

Got 2 In Using 2 Forms In 1 Solution?

Jan 4, 2010

I am using 2 forms in a solution the first is the application itself (MainForm) while the second is for the settings (SettingsForm) My first question is how to let the (SettingsForm) to Inherits Or Share the Declarations in the (MainForm)? And how do I it Save Load , the settings if changed when the application is closed Some applications use *.ini files to save it's settings but I don't know how to load it back I may save it with this code:

[Code]...

I may save a settings if there a Check box by "1" or "0" where "1" means Checked while "0" means UnChecked
Also, if there is a radio button I may set the first radio as "1" second as "2" third as "3" The problem is with Loading the settings Here is the Questions once more: 1- How to let the (SettingsForm) to inharets Or Share the Declarations in the (MainForm)? 2- How do I it Save , Load the settings when the application is closed?

View 6 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

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

.Net Forms Vs. Web Based ASP.Net Solution - Which Will Scale Better?

Nov 19, 2009

I am on a project helping to analyze the load a VB.Net WinForms application can take. This app has been in production for several years and has many many products on it. We plan to add more products but see the client footprint rapidly increasing. This is contributing the degradation of performance on the system overall.There is duscussion that moving the UI intensive portions of the app to ASP.Net it will reduce the client footprint and solve many of our issues.My question which of the following will scale better in terms of performance and load? ASP.Net(VB) Web based architecture VB.NEt WinForms 3-tier architecture

[Code]...

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

Forms :: Correctly Call From A Different Project In The Same Solution?

Aug 18, 2010

I can have all the projects existing in the same solution, and it builds fine. I can have a reference added to the project that I want to show a form from and still builds fine, every time I do something like this: Dim form_to_show as new Project2.Form1 form_to_show.show() It appears to corrupt the RESX file and stops compiling...it's really getting anoying..

View 7 Replies

Importing Solution Files With Windows Forms?

Jan 4, 2011

I am working on a vb.net Windows Forms application.I want the application to import Visual Studio Solution files from versions 2005 & 2008 (elsewhere on my Hard Disk).I am using Visual Studio 2010. I want the applicaton to find the files entitled - 'Microsoft Visual Studio Solution File, Format Version 11.00 # Visual Studio 2010.' Thyese are the files I need. I aso know that it will find files - 'Microsoft Visual Studio Solution File, Format Version 9.00 # Visual Studio 2005'.Under is my code thus far. Maybe someone can give me some advice as how to make sure that the applications returns the correct Sln files?

Imports
System
Imports
System.IO

[code].....

View 3 Replies

Forms :: Calling Sub From Two Forms?

Oct 2, 2010

I have a sub (stored in a module.vb) called from two forms.Subroutine simply fill a combobox with a database records. I need to fill another combobox (with the same name) in another form.Code is following:

Public Sub listNames()
Dim Cmd As New OleDb.OleDbCommand(strSQL, objconn)
Dim DataReader As OleDb.OleDbDataReader
Try

[code]....

If you see, this sub fill combobox in form frmAnagrafica; I would fill combobox in form frmSelection.Is there a simple way to identify form that call subroutine?

View 2 Replies

Forms :: Display Full Form With Different Screen Solution?

Mar 26, 2010

I have a form with full of objects & fix in 1020 & 800 screen solution, but if I set screen solution to 800 x 640 (to see more clear other applications) then my form show mising the right & bottom parts

1. Can VB show with auto-adjustment screen (auto show the form smaller to be fit)?

2. My form somehow can be set with Horizontal & Vertical slide (or some thing similiar) so the user can see the rest?

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

VS 2008 : Group The Elements In The Solution Explorer (Forms , Modules Etc)?

Oct 3, 2010

I would like to group the elements in the Solution Explorer (Forms , Modules etc) .Is this possible in the VB .NET Editor ?

View 5 Replies

Forms :: Calling A Sub On One From Another

Nov 29, 2009

Im loading a form to retrieve customer information from one form, then, when I collect the data, im trying to pass an ID back to the form that originally made the call. So, what I did is I made it so that the second form calls a sub on the first form, but for some reason it wont work. I put breakpoints in to check the variables, and they are getting data, but I can set the textbox on the first form with the data that is in the sub. Heres the code that loads the second form

Private Sub btnCustSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCustSearch.Click
Dim strLastName As String

[Code]....

View 2 Replies

.Net Solution With C# And VB Projects

Aug 30, 2011

I have a .Net solution with 5 projects in c# and one in visual basic. I want to know whether there would be a gain of performance to convert my visual basic project to C# in the day to day while I compile my solution.

View 3 Replies

Calling Forms From Another Thread

Mar 3, 2012

I cannot grasp this issue. In the below code. I am trying to start a separate thread to display a progress bar while a function is executed in the main thread. The function can take a while, and during that time the program appears to just lock up. So, the progress bar does not really need to show the progress it just needs to cycle till the main thread function is done executing so that people know that the program is still running.

[Code]...

View 11 Replies

Managing Several Projects In The Same Solution?

Feb 7, 2012

It's me again, trying to have multiple projects in the same solution. How can I do that?

I know that the project name should accompany whatever functions I'll be calling but somewhere it does not work.

One more thing, can I include forms in all the projects I create?

View 7 Replies

One Solution / Multiple Projects

Jun 13, 2009

I've developed a stand-alone RTF project/solution and a stand-alone calendar project/solution. I'm trying to incorporate them into a master project/ solution.If I just add the RTF & Calendar projects to the master solution, I cannot access them from the Main form of the master project. It just doesn't see them. Just adding the forms doesn't work because it doesn't contain all of the necessary information embedded in the project (references, etc.)

View 4 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

Forms :: Calling Function From Another Form?

Nov 23, 2011

I have defined a function on one form. I have to call that function again on another form. Is there any way I can do it without redefining the function again and again?

View 2 Replies

VS 2008 Calling Different Forms In A Function?

May 13, 2009

i am trying to use a login form that is used to login after you select one of 7 forms. this login form calls a function that validates then it calls another function, if it's true, that will load the appropriate form.

here's what i have.

vb.net
'Here are the appropriate variables
Public FormName As Form

[Code].....

View 3 Replies

VS 2008 Registration By Calling Web Forms

Apr 21, 2009

how should I go about starting to create a Win32 application interface to help user register an account from a website.The website have a form with a lot of controls which is not mandatory field, so my task is to create a form with a few controls and submit to the web server.What is the method that I should read about, is it HTTP Post/Get related thingy or is there any sample on how can I communicate the form action?

View 2 Replies

9 Projects In One Solution And Can Only Publish One Project

Jan 24, 2012

I am coming to the end of coding this system in Visual Studios 2008 which I took over from a guy who has worked on it for a year.He is not here anymore.He made 9 projects and put them into one solution(screen shot below).I have only published a .NET website for VB and have never published something like this.P3Data is the only one that the publishing tab comes up with. All the other projects the publishing tab does not come up. Why is P3Data bold? How can I publish the whole solution 'P3Data' as one whole entity?

View 5 Replies

Asp.net - How Are Classes Shared Between Projects In The Same Solution

Jan 29, 2011

Currently, I have a solution that contains two projects (ASP.net websites, FWIW). If I create a class in Project1, how do I expose it to Project2? Is it automatically available to Project2 because they are in the same solution? Or do I need to do something special to make the connection?

View 5 Replies

IDE :: Creating A Solution With Multiple Projects?

Aug 20, 2009

I thought I'd give VB a go after developing with C# for the past few months. I'm using Visual Studio 2008 and have imported the VB IDE settings. I'm going through the same steps in VB as I've gone through in C# to create my solution for an n-tiered ASP.NET web application, but the results are unexpected. Here's the steps:

1. File > New Project > Other Project Types > Visual Studio Solutions > Blank Solution .... name the solution & choose the location ...

2. At this point, I want to proceed to add projects as follows by right-click on the solution in solution explorer

a. Add > Visual Basic > Web > ASP.NET Web Application ... name / location of the Web Client

b. Add > Visual Basic > Windows > Class Library.. name / location of the Business Layer

c. Add > VB > Windows > Class Library ... name / location of the Data Access Layer

BUT, as soon as I complete step 2a, the solution disappears from solution explorer. "Show all files" is selected. This happens regardless of the project I create first.

View 4 Replies

Interoperation Of Multiple Projects Within A Solution

Nov 5, 2008

All too often, when I am looking for sample .NET code to do something and actually find it, it is written in C#. I am by no means proficient with C#... I can read and follow the logic of C# or modify the code, though I have difficulty following along since everything ends in "}".So what do I do? I create a solution with 2 projects. I put the C# code in one project and VB code in the other project. The VB project references the C# project and I modify the C# as necessary so I can call the useful code from the VB project.The current C# code I'm working with is a rather large project. Specifically what it does is handle input from HIDs (specifically I want to use it for input from a media remote).What I wanted to do was leave the C# code pretty much alone and just call a VB subroutine when any HID input is received (many of the remote buttons can't be distinguished from keyboard keystrokes) and process them in VB. Problem is that the VB code also needs access to pieces of the C# code (circular reference). Ideally what I'd want to do is create a VB module within the C# project (since VB.NET and C#.NET are functionally equivalent -- mostly -- though syntactically different). I've used compilers in the past with similar functionality, though I don't know if VS.NET 2008 has this capability. If I just add a module to the C# project, it expects it to be written in C#.If I can't do that, I see 3 options:

1) Write my application in C#

2) Write a new class in C# that exposes the functionality I need, instantiate it in VB

3) Convert all the C# code to VB

These options are beyond my current skillset (except maybe 3), though now is just as good a time as any to learn C#. But this may require more time than I'm willing to invest. I just wanted to create a task launcher / application switcher to be able to switch between music, video, and other players. I, in fact, already have most of the VB code I need from another project, including a DirectX "cover flow" style interface. I just want to add remote control support to it.

View 2 Replies

Multiple Setup Projects In Same Solution?

Feb 8, 2010

Can I included several setup projects in the same vb solution such that when solution is built each setup creates its own setup package?

View 1 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







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