visual-studio

How can i get more than one jpg. or txt file from any folder?

Dear Sirs; i have two Application to listen network Stream : Server.cs on the other hand; send file Client.cs. But i want to send more files on a stream from any folder. For example. i have C:/folder whish has got 3 jpg files. My client must run. Also My server.cs get files on stream: Client.cs: private void btn_send2_Click(object sen...

Disable AND and OR keywords

In VB.net the ANDALSO and ORELSE keywords should basically always be prefered over the AND and OR keywords. What is the easiest way to disable the AND and OR keywords? I'm thinking FXCop (maybe somebody has already written this rule). Maybe just some setting in VS (we're currently using 2008 and are moving to 2010 end of the summer) I'm...

Caspol, VMs, Mapped Drives, VS2010

Hi (updated this after various other attempts to crack it!) I have a VM (Win7 32 bit) with VS2010 installed. I have a drive mapped (not a vm shared folder 'cos I found a write-latency issue in other scenarios) into it from the host machine (VM 64 bit), when I have some of my VS2010 projects and to where I am building them. (I've also t...

How to get notification when a successful build has finished?

I'm writing an VS add-in and I need to run a certain method after a successful build. I've tried using dte.Events.BuildEvents.OnBuildDone but that event happens even if the build failed. Is there a property or some other event I should use? ...

How to package an off the shelf .net application that ships with custom code

We have an off the shelf application with hooks built in to handle customer specific needs. The custom code uses the same core libraries as our standard application. Our current process is ship the standard app via an MSI and then separately send along the custom dll. How is this typically handled? create a setup project for each ...

Database Designer for Visual Studio?

I am working on a database project and the entire team is working within Visual Studio. I created a database project, and I suppose I was hoping that I could utilize UML diagramming (or something along the lines of MySQL Workbench) so that I could "design" my database, and then auto-generate scripts. Unfortunately, at least from my cur...

Send mail using msbuild

Hi Guys, I have been trying to find out if MSbuild can send an email to the developers just like NANT. I don't see any option in mSbuild. ...

VSLauncher starts wrong version

I have 3 versions of Visual Studio installed, and 3 projects that require a specific version. VSLauncher USED to look at the SLN or VCPROJ file and open the correct version of Visual Studio. Now it only starts the most recent version, regardless of the project. Note that this has nothing to do with the commonly reported problem with be...

Visual Studio 2008 patching without suppressing database

Hi, I made a program using visual c# which connects to a local .mdf sql database. I've published it using the Publish Wizard, used the files on another computer to install it and it worked fine. However, some bugs were discovered. I've corrected the problems, published it again and tried to patch the program on the 2nd computer. Aft...

Visual Studio Formatting -- Change Method Color

The default appearance of a method for example, ".ToString()" is by default the color black. I want to make it a different color to stand out but I do not see any options that reference this option specifically. I remember one of former collegues showing me his VS IDE years ago and he had it setup this way but I cannot recall what he d...

Website settings for running visual web as root?

Scott Gu explains how to run visual web developer using a root path, here: http://weblogs.asp.net/scottgu/archive/2006/12/19/tip-trick-how-to-run-a-root-site-with-the-local-web-server-using-vs-2005-sp1.aspx This worked exactly as he described in one instance for me. But, today I do not see this option. More over, I do not think I have ...

Visual Studio plugins for ftp?

Any good FTP Plugins out there for VS 2005/2008? ...

VC2010 Intellisense - auto-complete /full/ function declaration?

Every so often, in MSVC 2005/8, the erratic Intellisense would randomly decide to kick in and do something wondrous: auto-complete the ENTIRE declaration at once, while having laboriously been re-typing/selecting the function definition for the 1000th time. No, I wasn't drunk at the time. But I did see it happen occasionally--maybe 10 to...

vs10 not deploying all required files - then not over-writing updated files

I'm in the habit of deploying to alternating folders (/inetpub/wwwroot/mySite & /inetpub/wwwroot/mySite2) so if something unexpected happens with the deploy i can quickly swap back to a previous version just by changing the path in IIS So i was deploying an MVC2 webapp to a empty folder figuring that VS would send up all the files it ne...

How to detach document windows from Visual Studio 2010?

I've got 2 displays with very different resolution (which makes just stretching a window over them not a good idea) and actively use both of them, usually looking at one when doing changes in another. So I wonder if I could move a child window of Visual Studio 2010 from within the boundaries of it's main window an move it to another di...

connecting visual studio 2008 with ms access 2007

pls i have created an application that will input some infomation but i do not how to save these input into microsoft access 2007 database. pls help me explain the steps i must take. ...

Show Visual Studio's Source Control Merge Wizard programmatically

Hi, I'm developing a Work item Custom Control and I need to use the standard VS's Merge Wizard for items in source control from my code to allow to user choose the target branch, resolve conflicts etc. I'm pretty sure it's possible in some way (even through the reflection), but I just can't find the proper class in any of VS client assem...

How can i start windows service automatically

i try to develop a windows service. My win service must run if windows 7 stars up. How can i do? ...

Does MEF require .NET 4?

I am using Visual Studio 2010, try to create a MEF application. Does this require .NET 4.0 or can I target .NET 2.0? ...

Using code snippets in Visual Studio

Right now when I want to use the cw snippet, I'm typing cw, tab, tab. Is this the correct(fastest!) way of doing it? If there'd be some way of only having to hit once the tab key or any other key i'd be glad to know it. ...