.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Sharing Settings Between Projects in Visual Studio

Posted By:      Posted Date: October 21, 2010    Points: 0   Category :ASP.Net


This isn't exactly an ASP question, but this is the best Visual Studio forum I could find, so here goes...

I'm trying to share settings between two projects: a console app and a WPF app.  The WPF app only exists to view and change those settings. 

So in my console app, I wrote the following class...

Public MustInherit Class Settings

    Public Shared Property masUserID As String

            Return My.Settings.MasUserID
        End Get
        Set(ByVal value As String)
            My.Settings.MasUserID = value
        End Set

    End Property

    Public Shared Property masPassword As String

            Return My.Settings.MasPassword
        End Get
        Set(ByVal value As String)
            My.Settings.MasPassword = value
        End Set

    End Property

    Public Shared Property pathToXmlDocFolder As String
            Return My.Settings.PathToXMLDocFolder
        End Get
        Set(ByVal value As String)
            My.Settings.PathToXMLDocFolder = value
        End Set
    End Property

End Class

 My WPF app has a reference to the console application, so it can access the members of this Settings class.

So you'

View Complete Post

More Related Resource Links

Visual Studio 2008 does not open .rptproj 2008 projects

I have installed - SQL Server 2008 original version with SP1 and the Business Intelligence Development Studio - Visual Studio 2008 with SP1. I am told that Reporting Services 2008 is part of the Business Intelligence Development Studio 2008, however when I try to open my Reporting Services 2008 .rptproj files with Visual Studio 2008, they will not open. The error message is: 'C:\vs2008\CWReportsVS2008\CWReportsVS2008\CWReportsVS2008.rptproj' cannot be opened because its project type (.rptproj) is not supported by this version of the application. To open it, please use a version that supports this type of project. My VS 2008 cofiguration is: SQL Server Reporting Services   Microsoft SQL Server Reporting Services Designers Version 10.0.2531.0 Microsoft Visual Studio 2008 Version 9.0.30729.4462 QFE Installed Edition: Enterprise Microsoft .NET Framework Version 3.5 SP1 Microsoft Visual Basic 2008, C# 2008, C++ 2008 Microsoft Visual Studio 2008 Team Explorer Microsoft Visual Studio 2008 Tools for Office Microsoft Visual Studio Team System 2008 Development Edition Microsoft Visual Web Developer 2008 Crystal Reports Basic for Visual Studio 2008 Microsoft Visual Studio 2008 Team Explorer - ENU Service Pack 1 Microsoft Visual Studio Team System 2008 Development Edition - ENU Service Pack 1 Microsoft SQL Server Analysis Services Designer Microsoft SQL Server Integr

Visual Studio Most Recent Projects


How do I set the number of Most Recent Projects displayed.  I have tried the obvious -- Tools-Options..... but I cannot see it.


Visual Studio unable to open Blend 2 projects

I really don't know if this is the correct forum, so excuse me if it's not.
Well, whenever I try opening a Blend 2 Silverlight 2 application in Visual Studio (2008), it says that the project type is not supported by the installation.

Any ideas?

Visual Studio - Element ID Auto Complete Settings


I am a bit frustrated at the following. Yesterday I had a block of code that I wanted repeated in a series of conditional statements, ie., if ... elseif.... elseif... end if   When copy that block of code from one statement to the next VS replaces the id values for elements. I know that there can only be on ID per element per page but how can I stop VS from doing this? Thanks.

SSIS Projects in Visual Studio 2010 Beta 2

Is there any way to open/upgrade or create an SSIS project (2008) in vs 2010 b2?  I want to migrate my datawarehousing solution and these projects are excluded and it says they are not valid with this application...

How to set .net version 3.5 for all new Projects in Visual Studio 2010


Hi all,

I have installed VS 2010 Premium SP1 and start building new projects. My problems is that I have to change the default platform to version 3.5 every time I create a new project in VS 2010. Is there any way that I could set this in settings of VS2010 so I don't have to bother changing it?



Cutting Edge: Code Contracts Settings in Visual Studio 2010


Code contracts in the Microsoft .NET Framework 4 rely on a few features in Visual Studio 2010. We'll review the project options for code contracts, how they affect the rewriter tool and some best practices for argument validation.

Dino Esposito

MSDN Magazine May 2011

ASP.NET 4 and Visual Studio 2010 Web Development Beta 2 Overview

Many exciting changes for ASP.NET are coming in the .NET Framework version 4. This document gives an overview of many of the new features that are included in the Beta 2 release of the .NET Framework 4 and of Visual Studio 2010.

Visual Studio 2010 Beta 2

This is a big deal. This isn't ".NET 3.6" - there are a lot of improvements of .NET 4, and it's not just "pile on a bunch of features so you get overwhelmed." I've been working with and talking to many of the teams involved and even though it's a cheesy thing to say, this is a really customer-focused release.

ASP 4 - Whirlwind Tour around .NET 4 (and Visual Studio 2010) Beta 1

There's a lot of stuff that's new and added in .NET 4, but not in that "overwhelming-I-need-to-relearn-everything" way. More in that, "oh, this is way easier/simpler now" way. Like, moving data around with ADO.NET DataServices is easy, binding with client templates is easy, there's F# if you need it, the "dynamic" keyword if you need it, Silverlight's already installed, oh, and the parallel stuff will freak you out, but in a good way.

Short Overview of SharePoint Features in Visual Studio 2010

As you probably know, Visual Studio 2010 was announced earlier this week and it contains a lot of cool features and project templates for SharePoint developers. Below is a short overview for some of the SharePoint development related features and project templates.

Visual Studio Add-In for Web Parts Generation

This article will introduce you to a new Visual Studio 2005/2008 add-in that can be used for Web Parts generation based on a prepared ASCX control/template. The add-in should allow Web Part developers to easily make Web Parts using the Visual Studio HTML designer. It should save you a lot of time and make Web Part development an enjoying experience even for beginners.

This article is written in the form of a step-by-step tutorial. It will give beginners a chance to successfully make, deploy, and try their first Web Parts, and will save some time for advanced users as you can always run into challenges when working with SharePoint.

Code spelling checker extension for visual studio 2010

Building a spelling checker for source code as an extension for visual studio 2010.

Download and Share Visual Studio Color Schemes

The good news is that Visual Studio allows you to completely customize the editor background and text colors to whatever you want - allowing you to tweak them to create the experience that is "just right" for your eyes and personality. You can then optionally export/import your color scheme preferences to an XML file via the Tools->Import and Export Settings menu command.

Visual Studio Shortcut Keys

The following tables describe the shortcut keys in the Microsoft Dynamics AX Debugger.

Visual Studio closes itself by opening aspx-Page designer after Windows Update


Hey Guys,

I've a problem with my Visual Studio.

On the 13th of August 2010 i installed a Windows update on my vista sp2 pc. For this date my Visual Studio 2008 sp 1 always has closed itself by opening an aspx-page in designer view. There is no error message just closing the window. I restored a backup of my windows from the time before updating it and it helped, i could open aspx pages in the design view till the update has been installed again automatically after rebooting the pc. I can't disable windows updates, cause it's my pc at work and safety is very important. I hope you could help me out of this disaster.



Visual Studio 2008 Memory problems


My memory in task manager reaches about 900,000K  and I don't know why it does this. Definately slows everything down, especially when I rebuild my tableAdapters, takes about 30 seconds sometimes to rebuild the project.

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend