visual

Does anybody have practice in programming PCMEF - architectures?

PCMEF is an architecture style presented in the book Practical Software Engineering by Maciaszek and Liong. The layers are: P: Presentation C: Controller M: Mediator E: Entity F: Foundation. It is some kind of enchancement compared with MVC - architecture. I recommend it to interactice, data and communicating - oriented purposes. I...

Why are "Extracted Interfaces" Internal rather than Public?

Visual Studio includes a refactoring function called "Extract Interface" that generates an interface based on a class implementation. The extracted interfaces are Internal by default. Problem is, we end up changing nearly all of them to Public. Does anyone know why it's Internal by default? Better yet, is there a way to customize th...

Are There Any 3rd-Party Free Deployment Templates for Visual Studio Express Edition

Hi, Due to the lack of Deployment functionality of Visual Studio Express edition, I'm here asking if anyone can recommend a very nice free Deployment template for the express edition. I'm mainly working with C# desktop project. I know that there is still ClickOnce deployment in the Express edition, but it seems to me that it is not so ...

Object reference not set to an instance of an object - error

Hello, I'm trying to insert in an Access Database, from visual C#. But i got this error: error What am I doing wrong in code? The values are correct, they comes from the input boxes. Thanks! ...

Data is not saved in MS Access database

Hello, I have a visual C# project and i'm trying to insert data in a MS Access Database when i press a button. Here is the code: private void button1_Click(object sender, EventArgs e) { try { OleDbDataAdapter adapter=new OleDbDataAdapter(); adapter.InsertCommand = new OleD...

resources at class library project

Hello I want to add some xml file as resource to my class library project . Any idea how to do so , and call it later? In windows application i would do it like ClassLibrary1.Properties.Resources.file.xml But here it didn't worked any idea how i do it here ? ...

64 bit c++ compilation error

Hi, I hd made MFC application in VC++ 2005 and i need. It compiles successfully in 32 bit mode but when i try to compile it on 64 bit mode i get following errors. 1>------ Build started: Project: ProgressBar, Configuration: Debug x64 ------ 1>Compiling... 1>stdafx.cpp 1>C:\Program Files\Microsoft Platform SDK\Include\mfc\afx...

.net c# datagridview populating with non database data/setup

Hi, I have never used the datagridview in any other scenario other than one where it is populating by a database so suddenly my mind goes blank... I have 10 tubes, each with 8 vertical positions within it, so I have a 10 by 8 grid basically. Each has of those slots has (or not) an image in a folder. How do I get a datagridview to ref...

Class Interface in PCMEF

Hello, I have one question of PCMEF. The "interface" class between the layer, are is essential? How can I choise it's? ...

un able to connect my database to visual studio 2008

hey, i`m stuck on it.. plx help.. my database is created on mssql 2008 and have connected on sql server compact edition and not on windows authentication.. can any body please help me out.. ...

Debugging a Visual Studio 2010 extension or addin, always gives me LoaderLock...

Title says it all. I'm trying to write an extension for VS2010, but I get this every time: Hit F5 to start debugging A new instance of visual studio starts up I can see a bunch of DLLs loading in the debug host while the new instance is starting It then fails with a "LoaderLock". When I continue after that, the new instance is fully...

tigger a build in teamcity build server from visual svn

Question Is there a way to notify teamcity when ever someone does a commit to a repository on visual svn? This is so every time someone commits to the repository a build in teamcity will trigger immediately without the developer having to wait for polling to kick in on its set time interval. ...

Why is my configuration manager disabled in Visual Studio 2010?

I just started working on a new project, and I can't sent the build action to Debug/Release This is a huge problem! I have another solution on my system that, when opened, allows me to change the solution configuration. So it must have something to do with this specific solution??? ...

in C# is there a way, in the debugger, to suppress a exception from breaking into the debugger?

I'm using VS2010 in C# there is a place in my code where an exception is thrown and properly handled. the problem is that I'd like to configure the debugger to break on all exceptions, handled or not - all exceptions but this one. My goal is to see all the thrown exceptions in the debugger, but this one exception is driving me bonkers ...

Is it possible to create a DSN on a remote server in C#

I am trying to create a script such that I am given an array of server names and from these names I would like to create a system dsn on each of those respective machines. I know that you can use SQLConfigDataSource() to create a dsn on your local machine, but it does not seem to give any parameters for creating the dsn on a separate ma...

DataGridView how to display grid lines in entire client area?

Hi, Is there a way to turn on grid lines in the entire datagridview client area rather than them becoming visible as you add rows? I have read the msdn but find nothing of use. C#, winforms, visual studio 2008 Thanks, R. ...

PostSharp build targets not running when using Debug configuration

I have setup a Visual Studio project that I have edited to reference the PostSharp build targets. I did not use the MSI installed to install PostSharp on my development machine. The problem that I am having is that the PostSharp Targets are only executed when I change the build configuration to 'Release', but not in 'Debug'. I can veri...

Finding Controls of the Same Type

Does anybody have a good way of finding ALL the controls within an object that is of the same type? Here's my scenario, I have a tab control and within each tab control exists a user control (ALL of which match the same base type e.g. MyBaseClassControl). I want to be able to find that user control WITHOUT having to use the control.Fin...

How do I specify Visual Studion Installer Conditions?

I have a Visual Studio Installation Project and I want the Installer to create a specific folder only if a check box on a 'Checkboxes (A)' form that I've added to the project UI is checked. The name of the property for the checkbox is CHECKBOXA1 but I have no idea what to put in the Condition property of the folder so that it only gets c...

ASP.NET chart control

Hi All I have heard about the new chart control. What format do these charts render on the page? Flash, Sikverlight, images, etc. Thanks, Jason ...