VS 2010 Reusing A Very Specific Project For Multiple Solutions?

Aug 1, 2011

First of all, I wasn't sure whether this was VB.NET or General Developer content... It's not technically about VB.NET code, but it's not very general either since it is specifically about Visual Studio. Feel free to move it if required.A while back I realized that all of my database connection code was getting very biolerplate. had 'developed' my own method of connecting to an Access database and storing the results. Basically, for each table I create one 'Manager' class and one 'Entity' class. The Entity class represents a single record in the database and has properties for each field.

View 9 Replies


ADVERTISEMENT

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

Reusing A Menu Strip On Another Form Inside Project?

Mar 26, 2010

created a menustrip (MenuStrip1) by dragging the tool onto my form (form1.vb). And designed the headings/items etcI have now created another form (form2.vb) within the same project.I would like to use MenuStrip1 that i designed for form1.vb in my new form2.vb.

View 6 Replies

Reusing Same Controls On Multiple Forms

Mar 22, 2012

I have a set of controls and code behind them that I'd like to reuse on multiple forms. How can I do this? I know of reusing code via modules, but I'm not sure how I can add the same controls and their underlying code. If I achieve this, will changing data on one form affect the values of another form when they're both open? For example...
Cbox1's selected item affects the choices within Cbox2, and Cbox2's selected item affects the choices within Cbox3 (and so on).
So if I do something on Form1's Cbox1 and it changes Form1's Cbox2, will it NOT change Form2's Cbox2?

View 4 Replies

Forms :: Access Another Form In A Different Project In The Same Solutions

Jun 1, 2011

i have tried googling this and cant find a way to do this, i hav 2 projects in the same solutions, i am trying to write a bit for Solution1_Project1_Form1 to open a windowsForm in Solution1_Project2_Form2.

Start main application & View 2nd application FROM within the main application.

Start the 2nd application WITHOUT using the main application.

both applications need to read and write to a database, i dont think this makes a big diferance but thought i would mention it

View 2 Replies

Reusing Code (functions, Subroutines, Etc.) In Multiple Pages

Dec 28, 2010

I am very familiar with modules from my time with VB and my other programming, but what is the most commonly used practice and the best way to go about this for a website application with ASP.NET? Say I have multiple pages (in multiple directories; some in the root directory, some in child directories from the root) that will call the same set of functions and subroutines, how do I go about putting this reusable code in a place where the pages and their respective classes can call the functions/subroutines?

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

VS 2010 1 Project - Multiple Project Types ?

Sep 30, 2011

A colleague has written a useful tool. He wrote it as a standalone tool, but it works even better as an includable dll, though it needs a bit of other functionality for it to be a really good drop-in component. What I am wondering is whether a project can be compiled as both an exe and as a dll?

There are alternatives, such as having a dll version and an exe version, since the dll version needs to include a few different methods that the exe version doesn't need, but this alternative sucks, since it would mean changing two sets of code.

Another alternative is to build the dll, then change the exe to be a project that references the dll....and does nothing other than calling one method in the dll. That kind of sucks, too, but not as bad.

I want to be able to use his module in some of my programs, and it really should be built as a component rather than a standalone app, but I want to know whether there are other options that I haven't considered.

View 2 Replies

Publish Specific Files Not In Project In VS 2010?

Jun 23, 2011

Is there a way I can publish *.ascx files without adding them to my project?I am trying to make my user controls in Visual Studio 2010 reusable. I have a project containing my user controls called ControlsLibrary solution directory. I copy the ascx files to the web directory upon building the project with build events.I use the command copy "$(SolutionDir)ControlLibrary*.ascx" "$(ProjectDir)controls"

This copies the *.ascx files from G:/SolutionDirectory/ControlsLibrary to C:/Inetpub/wwwroot/WebProject/controlsNow when I publish WebProject, the publish does not copy the *.ascx files from C:/Inetpub/wwwroot/WebProject/controls to my website. This is because they are not added to my project.

Is there a way I can publish *.ascx files without adding them to my project?I know there is a way to publish all files by selecting the option "All files in this project." That includes more files than I want.

View 1 Replies

C# - Visual Studio 2010 Express Multi-language Solutions?

Dec 1, 2011

I am working on a C# project, which needs a VB.NET Class library.I have added the DLL reference of VB.NET Project into C# project.This works fine, but sometimes I need to debug the VB.NET project or pause the project and check the variable values of my VB.NET Project.Is it possible in Visual Studio 2010 Express Edition?

View 2 Replies

VS 2010 Multiple Versions Of Project?

Jun 23, 2011

I want to update the project with some new functionality but I want to keep the original intact.What's the best way to go about creating a new project with copies of all the files and resources from the original, but with paths that all point to the new copy?

View 5 Replies

VS 2010 Does Express Version Support Adding Multiple Soultions (.sln) To Project

Aug 2, 2010

Does the Express Version support adding multiple soultions (.sln) to a project or is this only available with the Professional version.I see that I can add a DLL as a reference that was built in 2010, but it is not letting me step into it with the debugger (or recompile changes to its source).

View 10 Replies

C# - Project To Project Reference Specific Version In Same Solution

Jun 7, 2012

I'm developing application that is plugable. The plugins are loaded via Assembly.LoadFrom(). In my solution I have 4 projects. A WPF, 2 DLL and another DLL that is a plugin for the app. The plugin project references one of the other DLLs. When I build the Solution and run I was getting an error trying to use the plugin dll because it was expecting an older version of the referenced project. I had to clean and rebuild the plugin project to get it to run correctly.

[Code]...

View 1 Replies

VS 2008 : Get Multiple Icons In A Project For Use With Shortcuts OUTSIDE The Project?

Nov 28, 2011

How do i get multiple icons in a project for use with shortcuts OUTSIDE the project..

View 7 Replies

C# - Reusing A Menu With Mvvm And Wpf?

Jun 7, 2011

I was wondering what the best approach is for sharing a menu across all wpf windows/views. My Application doesnt really fit the navigation model, so will probably use a Ribbon control. I am leaning towards creating a user control for the menu and dropping it on each view, but have also seen Josh Smith's msdn article, where he loads user controls.

View 2 Replies

Reusing A Datarow In A Datatable

Jun 7, 2009

I am working in vb2008. Is there a simple way to clone the contents of a datarow in a datatable into a new datarow instance that can be added elsewhere in the table. Can I create a new instance of a datarow and set it equal to an existing datarow?

View 5 Replies

Reusing MySqlConnection.serverString?

Jun 20, 2012

Say I have a connection to a database. After reading some stuff I want to connect to the same database. So I naturally use the first database mysqlconnection.serverstring the password and username is not included in connect1.ConnectionString. So how can I do so? Is this by design?

[Code]...

View 3 Replies

Reusing The Same Varible For A New SQL Command?

Apr 13, 2009

In the code below can I use the cmd for another sql command or do I have to create a new sql command like shown below?

View 2 Replies

Unique ID Reusing Gaps?

Nov 1, 2011

I am upgrading a system that has a Product Table with a Product No Field.This is a string field but most of the existing product Nos are numeric but all over the place.I want to provide a default numeric Product No when the Users are creating a new product record.All I can think of is to use the Identity Field [ProductID] and test to see if it has been used and if so keep incrementing to find the next free numerical, available No.A better solution would be to start at 1 and increment to find the first available but it looks to be several hundred records into the Table. how to find the first available number?

View 9 Replies

Reusing Processes And Disposed Not Firing?

Oct 8, 2010

I'm attempting to run different tasks in there own processes, waiting until each is done while keeping the UI responsive. So far it works exactly how I want it until I try to reuse some of those processes....here is a sample of the

Private WithEvents TaskOneProcess As Process
Private WithEvents TaskTwoProcess As Process
Private WithEvents TaskThreeProcess As Process

[code]....

This is a over simplification of what's going on but it gets the point across. So it works exactly as expected, a button is pressed and the sequence starts. As each task gets disposed it recalls the StartFixing statement which then calls the next one in order until they are all done. BUT when I go to do it a second time the Disposed never fires assuming since it's already disposed. How do I recreate the same named process so it can be reused and still have it fire the disposed event?

View 2 Replies

Reusing And Cleaning Up User.config Files?

Nov 11, 2010

Not sure if this has been asked before (couldn't find an answer), but is there a way to reuse a user.config file from a previous version of the application? For example a user.config file is stored in:

C:UsersJohnnyAppDataLocalCompanyApplicationName.exe_Url_wxcnyrmstqy3oj1qwckdjq3gjqkq4fel1.0.0.0user.config After a new version is installed it gets stored in:

C:UsersJohnnyAppDataLocalCompanyApplicationName.exe_Url_wglmejvw01nagu5t1y5yl12chynjomny1.0.0.1user.config The user then has to enter all settings again, even if the new version does not save more settings. An other problem is that although the user.config file is very small, it does get messy after a while when newer versions of the application get installed. Is there a way to clean up the unused user.config files and their folders?

It's the same problem with System.Windows.Forms.Application.LocalUserAppDataPath, that I'd like to use to save other files (containing Listview data), which points to:

C:UsersJohnnyAppDataLocalCompanyApplication1.0.0.0 The Listview data and other files created by the app can't be used anymore.This can be solved by getting the user's appdata folder with Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) and creating a new folder there with the name of the application. But this means there's one folder where the application is installed (user can choose this folder in the installer), one folder to save my own files to and one folder where VB stores the user.config file.

Can something be done about this "mess" or is this just something I have to live with?

View 2 Replies

VS 2008 Saving And Reusing The Size Of A Form

Mar 30, 2010

I save the size of a form to a variable (One Size or two Integer variables--doesn't matter), and then I close the form. Before reopening the form, I set the form size to the size I saved before--which by all accounts of logic and reason should exactly the same. Except, no, it's not. On one system the form "grows" horizontally and vertically by 15 or 16 pixels. On another system the form grows only vertically 15 or 16 pixels. I'd love for someone to explain this perfectly insane, yet MS typical, behavior to me.

[Code]...

View 5 Replies

Project Which Requires A Specific Mp3 Play In The Background?

Jul 25, 2009

I am currnetly on a project which requires a specific mp3 play in the background. now I am not much of an experienced programmer.. so I need concepts.

View 2 Replies

Specific Condition In Setup And Deployment Project?

Jul 8, 2009

I have a VB.NET Application and I am developing a deployment project in VS 2008.

I need to give the user the choice to allow the application to start when windows start (but this should be optional)

Then in my application there should be an option to remove the application from the windows start up folder.

View 3 Replies

Get A File Path In A Specific Project In A Web Application Solution?

May 30, 2011

I'm writing a Visual Studio Macro and need to read a XML file in my project and write something. i can't get the correct file path! in my web application solution i have to projects for business and UI files. and my xml file named fa.xml located on UI project in a separate folder. i want to use this macro for many solutions. but the structure is the same. How can I get the Path of a file in a specific project in my solution?

View 1 Replies

Convert A .NET 4.0 Webforms Solutions To C# 4.0?

Jun 18, 2011

I have a VB.NET 4.0 based solution (just one project) in Web Forms and needs quick conversion of the whole solution to C#.

View 1 Replies

Licensing For VB 2008 Solutions?

Oct 5, 2009

How we create a licensing system for a vb 2008 solution to protect it from unauthorized access? Is there any code to generate a unique system id to identify a machine like CPU ID etc.?

View 1 Replies

Get Specific Data From Multiple Rows?

Aug 31, 2010

get specific data from below case?. As it is imported from text file, all row data located at A column per Row and total number of rows are more than 30000. From below, I want to get Company name and Address data only out of long text data.

For your understanding, a)Each row start with 6digits number like 3336041, 3336058 etc and end with pin code 6digits. b) there are minimum 4 or more digit's space after company name and each address data.

Result should be got <company name> and <Address field> data only.

for example 1st block should have below format;

PROCON INSTRUMENTATION PRIVATE LTD

244, G S T ROAD, URAPAKKAM,GUDUVANCHERY TAMILNADU, TAMIL NADU Pin:603202

2nd block: to display in another lines as like above - marked as bold in sample text

3rd block: to display in another lines as like above - marked as bold in sample text

[Code]...

View 3 Replies

Search Multiple Arrays For A Specific Value?

Jan 8, 2009

I'm trying to find out a way to search multiple arrays for a specific value. I looked through here, yahoo, google and msdn and couldn't find anything specific to what I'm looking for. Don't have any sample code as I'm not quite sure where to start.

View 2 Replies

.net - Optimistic Concurrency And Improving Solutions?

Mar 19, 2011

In our database we have gigantic tables (it was initially built 20 years ago). We are on the process of developing it.

Some tables contain rowversion and optimistic concurrency. We were wondering if there is a way to just correspond rowversion to the modification of some specific columns, but not all of them. In Normal Case, T-SQL which is generated then would be huge.

View 1 Replies







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