One .SDF File For Multiple Projects?

Jan 4, 2010

I have a large application with multiple vb.net projects. I have one .sdf DB file for all of the projects. My problem is that when I add records to the DB in one project, it is not available when I try to access the data from another project. The project is looking in the local DataDirectory for that project where there is a copy of the DB file. Is there some way that I can create one folder for the DB and have every project access it. When I add the DB to each project, it creates and uses another copy in the bin folder of that project. I have tried setting the connection string in My.Settings to a common DB folder with no luck.

I also find that when I use Server Explorer to make changes to the DB, all of my data is wiped out. I also don't see any records when I choose Show Table Data in Server Explorer. I am assuming that the records are in the copy in the Bin folder.

View 7 Replies


ADVERTISEMENT

Implementing Config File That Multiple Projects Can Read?

Mar 7, 2011

I am using VB.NET 2010 with a solution that consists of class libraries and winform projects.

Each project has an app.config for it's specific needs. There are however, several settings that are common across all projects. I would like to implement a common config file to hold those, but that effort hasn't been very successful.

After much searching I developed a test program to play with and it was working until I moved the Globalsettings into a separate file. Below is a paste of my code along with the config files I've been experimenting with. I've added the references to system.configuration and made sure my config files are set to always copy to the output directory.

The code compiles, but GlobalSettingsLookup is never set to an instance of NamevalueCollection. I'm guessing it's because the ConfigurationManager can't load the section "GlobalSettings"(?) That's just a guess

My Code:

Dim GlobalsettingsLookup As NameValueCollection = CType(System.Configuration.ConfigurationManager.GetSection("GlobalSettings"), System.Collections.Specialized.NameValueCollection)

[Code].....

View 5 Replies

VS 2008 Multiple Icons For EXE - Specify One Icon File For Projects?

Apr 28, 2010

I'm sick of my EXE files only looking decent in one view in explorer (ie List or Tiles etc) because I can only figure out how to specify one icon file for my projects so it has to be a specific size and if its too big it looks rubbish at smaller sizes in explorer, and vice versa if its too small. So how can I embed more than one icon file and make it automatically select the correct one to display in explorer depending on the view? I believe you can store more than one icon in an ICO file, so do you have to just combine the various size icons into one ICO and then explorer will automatically select the correct sized on? Or is it something you have to do within the VB project?

View 7 Replies

.net - Using The Same Modules In Multiple Projects?

Dec 30, 2010

I'm using Visual Studio 2010 and coding in VB.NET.

My problem is that I've collected all the modules I've written and intend to reuse and placed them in a separate folder. When I want to add a module from the above folder to any given project, it takes a copy of the module and places in the project's source code folder, instead of referencing the module in the folder containing all the other modules.

Is it possible to include a module in my project and leave it in the folder with all the other modules, so that when I improve upon a module, it'll affect all the projects that uses/references that module. Instead of me having to manually copy the new module to all the projects that uses/references the module. Right now I have multiple instances of the exact same module that i need to update manually when I improve code or add functionality?

View 3 Replies

IDE :: Debugging Multiple Projects At Once?

Mar 17, 2011

I want to debug a client and a server at once... how to start those to together? I find Right click on the project -> Debug -> Start new instance time consuming...

View 1 Replies

Multiple Projects And Referencing?

May 31, 2009

I am currently working on an application that is about 90% finished, and we just got an addition that requires us to create a new project in the solution. My question is, I have a bunch of classes created in the main project that deal with the database, and it has a lot of functionality that I could really use in this other project.

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

.net - Create Multiple Projects Using Different Languages?

Jan 24, 2010

Is there a way for me to create multiple projects using different languages under 1 solution in VS 2008? If so, how?

View 3 Replies

Combining Multiple Projects Into A Single One

Apr 19, 2008

I originally developed a simple application software [VB.Net + MS Access] (Lets call this project A) but now I want to include more functionality in it. I have an encryption/ decryption software utility (Lets call this project B ) and a Text to speech generation utility(Lets call this project C) . That is, I want to add Projects B and C to project A. [Such that clicking on the main form of project A calls a form from project B or C as desired].In solution explorer, I right clicked--Add Existing Project--and added both the above mentioned projects 1 by 1. (Added B and C to the solution explorer with the already present A).As the application software's (Project A's) main form is the main form of my project, I want to have a menu option on the main form (Of Project A) so that a user could click on one of the menu options and the main form of my other projects ( Project B or Project C or Encrypt/Decrypt or Voice Generation) should open by him doing so. To this effect, I tried the following:

1. I dragged the form simply from one of the projects (From B or C ) into the folder of my Application Software (Project A).This generated a lot of Build errors and the Voice Generation utility (Prj. C) would not work like this.

2. Tried to reference a dll, however the authors of Projects B and C did not include a dll in their projects.

3. Now I came to know that to call a form residing in another project folder or even another folder within the same project, you have to give a path for the form. HOW DO WE DO THIS?

As you can understand, I cannot copy the entire code of the 3 projects here....I will try attaching my project here though..Here it is: http: rapidshare.co...MY_Prj.zip.html[Dear Administrator: The downloading option on the webpage does not allow files bigger than I mb, thts why I used an external link]As I said, in the application, Project A is TMS.NET ; Project B is EncryptFile and Project is C.I encountered a problem while adding project C [spoken word], so the project contains only projects B and A. I will try to attach project C seperately.That is, TMS contains proj A+B and Speech contains C.

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

Multiple Projects: Call The Second Project From The First

May 2, 2012

i have a solution that has two projects in it. one is a start up project. can i run the second project runtime by let's say pressing a button when the first one is running??? if so how can i do that?

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

VS 2008 Multiple Projects Into One 'application Mix'

Jun 21, 2009

I have written a few different applications in the past few years, all of which are related in that they help users creating maps/levels for a certain game. I would like to 'bundle' all these applications together, into one application (and will later add more functionality to that). In it's most basic form, it would simply be one single Form with buttons, where each button opens the corresponding application.

[Code]...

View 8 Replies

VS 2008 Why Use Multiple Projects In One Solution

Dec 8, 2010

I've been doing some lite coding over the last couple years so I'm no where near where a lot of you already are. So my code tends to be organized in the standard beginners format... one project per solution with one executable (*.dll or *.exe). So I have a bit of a "best-practices" question for you... Why use multiple projects in one solution?

[Code]...

View 14 Replies

VS 2010 Working With Multiple Projects

Aug 18, 2010

How would i reference a control or form from another project. I have a solution with multiple projects (Project1 & Project2 for example) and I want a button on Form1 of Project1 to open Form1 on Project2. I know if they were part of the same project it would simply be Form1.Show() and I thought something like Project2.Form1.Show() would work but unfortunately it doesn't seem that easy.

View 15 Replies

.net - Add Multiple Solutions Referencing The Same Projects To SourceSafe?

Oct 14, 2010

I've got a StartUp project (StartupProjectA) in Visual Studio that references projects A, B and C. I've got all of those in SolutionA.My predecessor has previously added this solution to SourceSafe so that there's a SolutionA folder in SourceSafe, containing a StartupProjectA folder, and A folder, a B folder and a C folder.

It turns out, though, that StartupProjectB and StartupProjectC all live in the same directory as StartupProjectA on the local machine, so on the PC I'm using I have a [GeneralSolution] folder which contains a StartupProjectA folder, a StartupProjectB folder, a StartupProjectC folder, and A folder, a B folder and a C folder.My question is what do I do to get the Solutions for StartupProjectB and StartupProjectC into SourceSafe? I've tried adding them, but they all create their own copies of folders A, B and C. What have I missed?

I'm trying to use the Visual Studio SourceSafe integration to get these solutions into SourceSafe. Doing so creates multiple redundant copies of A, B and C. I would like to have one folder in SourceSafe, containing SPA, SPB, SPC, A, B and C folders. I'm not really sure how to do this, because I can only add entire Solutions to SourceSafe via Visual Studio. There's no option that I can see for "Add this folder to SourceSafe and recognise that these other three folders are already referenced in the repository and so don't need to be added."

View 3 Replies

Accessing Multiple Projects In A Single Solution

Jun 17, 2009

I've developed a couple of different stand-alone projects, myRibbonRTF and myRibbonCalendar and have them functioning well. I want to tie these together with other projects in a single solution called myMain. When I add these projects to the solution, their forms are not accessible in myMain (e.g. myRibbonRTF.frmMain.Show()). I've searched high and low for the last week trying to solve this and the only nearby solution is to turn the other projects into .dlls and access them in myMain that way.

View 7 Replies

Multiple .NET Version Projects Pointing To Same Files?

Jun 29, 2009

I have some assemblies that were developed using .NET 1.1. These are business layer assemblies that are required for other .NET 1.1 applications to work. I have been developing our new applications using .NET 2.0/3.5. I would just convert the business layer projects over to 2.0 and be done with it, but those old 1.1 applications just won't die.As such, has anyone ever had two different .vbproj files (one a .NET 1.1 project file and the other a .NET 2.0/3.5 project file) that pointed to the same set of files so they could be compiled appropriately?

View 2 Replies

Sharing Data Between Multiple Projects In Single Application?

Jun 11, 2011

I have a windows forms application with one exe and several dlls(Class libraries) in a single solution. The application uses common data that is used across all the dlls. I would like to load the data when the application is starting up and use the loaded data at various points in the dlls so that I do not have to load the common data again and again. How can I share the data loaded in main EXE across the DLLs?

View 2 Replies

VS 2010 Publishing Multiple Projects - Get The Error : Application Validation Did Not Succeed. Unable To Continue?

Jul 28, 2010

I have a solution with two projects. The main project connects to the second project via a reference, and the reference path is local to my machine. It looks like it references the .exe file.So when I publish the main project (ClickOnce), i get the following error:
Application validation did not succeed. Unable to continue.In the log file, under Error Details, it says

System.Deployment.Application.InvalidDeploymentException (RefDefValidation)
- Reference in the manifest does not match the identity of the download assembly Project2.exe
- Source: System.Deployment

How can I include this second project? Should I publish it, then reference the published files? What do i reference? The .application file?Is there a way to just include this second project, so when I do publish the main project, the second one just goes along with it?

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

Common .vb File For All Projects?

Apr 17, 2011

In the old VB, there is a .bas file wherein i place all the global constants there and whenever i create a new project i just include that .bas file so that all the constants i placed are automatically added to my project. Is there any way to do this on VS2008? Ill be doing dozens of Class Libraries that that needs to reference global constants.

1. Is there any other way of referencing the global constants rather than making it a shared variable in a class?

2. Also, is there a way to include a .VB file without the copying it on the local project file? My point being is that this .VB file is also being used by other Class LIbraries that i created.

View 4 Replies

Combining Two Projects And Get A Single .sln File

Apr 19, 2012

I want to combine two projects into one i.e. image and audio steganography with a single .sln file. How do I connect them? I'm using Visual Studio 2008.

View 2 Replies

VS 2008 Published Projects - Get Hold Of The Actual Executable File

Jul 31, 2009

When a project has been published the file that is put in my start menu is an application reference. How do i get hold of the actual executable file so i can post a demo?

View 3 Replies

.net - Several Visual Studio Projects Are Complaining That A Temp File Is Missing And Therefore Cannot Be Opened. Error Code &H80070003

May 31, 2011

I'm running Visual Studio 2010 on a terminal server, and have been, with relatively few problems, for some time. This morning I fired up my PC and over the UK's long weekend, the following issue seems to have developed.I've got a bunch of projects (but not all of my projects, and not all of the projects in a given solution) complaining that a particular file (which does not exist on the computer) cannot be opened, and so those projects will not compile anymore. Here's the error:

Error 31 Unable to open module file'C:Users[username]AppDataLocalTemp2.NETFramework,Version=v4.0.AssemblyAttributes.vb':
System Error &H80070003&

I could simply copy the file into that directory and be done with it, I'm pretty sure that will work,EDIT: Okay, now things have gotten to a whole new level of weird. I've rebooted the server, I get the same error message, only now the file it is asking for exists and can be opened in Visual Studio with no problems. another part of the IDE still insists that it's unable to open the module file.

EDIT 2: Can't delete the file because it claims to be open in another program, but I've logged off and logged on again, and there shouldn't be anything accessing it.

EDIT 3: Because there's a wall of comments below his answer, I'll mention here that Jared's suggestion to delete the SUO file for the solutions having the problem (not files specifically to do with any of the problem projects, strangely) was what solved this, eventually.

View 2 Replies

File I/O And Registry :: Listing Multiple Regkeys Under Multiple Keys?

Jun 13, 2012

I am trying to list all printers (PrintersConnections) under all users (HKEY_USERS)

problem is I dont know the user name keys in advance and need to exclude .DEFAULT and *_CLASSES so first I need to list all key names (%usernamekey%) directly under HKEY_USERS then for all keys that lists lsit all keys under HKEY_USERS\%usernamekey%PrintersConnections

Here is the code I have so far but I get errors about object variable not set, I suspect because of the way I doing the for each and listing the key names and then doing it again

Code:
Private Sub DetectPrntrs()
Try
Dim RemReg As Microsoft.Win32.RegistryKey

[Code].....

View 2 Replies

Why Would A .sln File Open As Empty In VB2010Express When It Should Open Referring To Projects Etc

Mar 6, 2012

Why would a .sln solution file open and appear empty in Microsoft Visual Basic 2010 Express - i.e. no windows showing projects and code files etc.When I inspect the file in a text editor, it contains references to vbproj files (which are present) which indicate that it should not appear as empty.No error messages are reported when the file is opened.

View 2 Replies

VS 02/03 Grab A File Version Of An Specific File From Multiple Remote Machines

Mar 4, 2012

able to give me a script that i will be able to grab a file version of an specific file from multiple remote machines. I have a list of machines in Txt file ... i want the script to read the list.. and generate a new file that have the Machine names with File version.

View 1 Replies







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