visual-studio

Visual Basic.NET Training Example

Hello guys! We'll soon have some high school kids here in our company for some training lessons in programming for about 1 1/2 days. We decided to do Visual Basic.NET and thought about programming a little calculator with the four basic operators. Considering the fact that they will be here for only 1 1/2 days, this application might ...

VS setup projects custom parameters

Hi I've created a Visual Studio Setup project which generates a .msi file that installs a windows service. That worked perfectly fine. It also asks for the user/pwd for the windows service identity during the installation process. My problem came up later. I was modifying the setup project to ask for more information to the user so I ca...

Visual Studio Command Prompt vs. Regular Command Prompt?

When I open a command prompt through Visual Studio, I get: Setting environment for using Microsoft Visual Studio 2008 x86 tools. C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE> What kind of tools are available, and what are the most common uses of this command prompt? ...

Need help with a macros for Visual Studio to cancel outlining at file open...

As you can guess from the title, the outlining with regions finally made me sick. I remember reading in comments somewhere that it is possible to have a macros to perform this task. Since I haven't ever written a single macros fro VS, I ask for community assistance. How? ...

Keyboard command to get out of auto generated double quotes

I have a real simple and seemingly stupid question, but I am getting alittle frusterated. I really like the intellesence in Visual Studio 2008, but there is one thing that is bothering me. When I am writing some XAML, and the intellesence comes up, I select the appropriate property and it automatically inserts it along with the nessesa...

How can i make a template of my Visual Studio Solution files?

Hello, i use n-tier programing on c# and i want to make a template to generate code easily (this is .cs, .csproj and .sln) my question is, how can i make it? and if exist a software, which one you recomend??? it will be very useful your opinion ...

Setting static pPort number on Visual Studio Dev Server with a WebSite project

I have a WebSite project in Visual Studio 2008 (not a Web Application project!) How do I set the ASP.NET Development startup port to a static port in a WebSite project? ...

Preprocessor switch determining version of a class

I have a class with two possible implementations, depending on a preprocessor switch. The way I have handled this is to create "src\CompSwitch1\class.h" and "src\CompSwitch2\class.h". In my standard include file, I use #ifdef CompSwitch1 #include "CompSwitch1\class.h" #elif CompSwitch2 #include "CompSwitch2\clas...

Adding an attribute to a class by using properties editor

Visual studio allows you to design component visually. For example, you are designing a windows form. You change its property in the properties editor. The IDE will generate the code in a partial class in xx.designer.cs file. We can customize this behavior by changing the UITypeEditor for the properties. The question now is , Can we ex...

Associate web page with project in Visual Studio

Is there any way to associate a web page with a project in Visual Studio, and have it load up in the IDE? For example, I have a project who's task list is maintained on a web site. It would be ideal to see those tasks within the IDE instead of a separate page. I can accomplish that now by following these steps: Press Ctrl-Alt-R to open...

How to "add reference" in C++

I'm new to C++ and there's something I just completely don't get. In C#, if I want to use an external library, log4net for example, I just add a reference to the log4net DLL and its members are automatically available to me (and in IntelliSense). How do I do that in non-managed C++? ...

MVC T4 MvcTextTemplateHost and Customized "Controller" T4 Template

I am creating my own custom T4 Template that integrates with an ADO.NET Entity Framework Model (.edmx file) included in my MVC Web Application. For Reference Please take a brief look at the following two URLs. Scott Hanselman - "T4 Code Generation Visual Studio Best Kept Secret" Visual Web Developer Team Blog - Quick Start Guide for ...

Why doesn't Visual Studio Intellisense automatically insert runat="server"?

For any of the common "asp:______" controls (asp:gridview, asp:repeater, etc) I always add runat="server". Is there any good reason that Intellisense shouldn't insert this automatically? ...

Should a new Visual Studio-Based Application be based on 2008 or 2010?

I am thinking of creating a product based on the Visual Studio Shell (primarily isolated mode). Since Visual Studio 2010 will most likely be RTM before my product, does it make sense to start with VS2010 as a base rather than VS2008? Has anyone looked at what they changed in connection to the shell framework and if it is improved enou...

How can I maintain two separate projects but merge them into one DLL?

I'm hoping that there is just something simple that I am missing here. I am trying to maintain two separate projects ProjectName.Core & ProjectName.Infrastructure This is made in a typical Onion architecture so I can loosely couple my services and gain a greater flexibility. The Infrastructure project references the Core project. Once...

What is the best vs2008 theme you have seen

What is the best vs2008 theme you have seen. I have been looking for a theme that looks like the borland turbo c of so long ago. ...

How to disable visual basic errors in the error list in visual studio

I have a large solution which contains a mixture of C# and VB.Net projects. If I get compilation errors because a project which several other projects depend upon fails to build, it is very hard to see the actual error(s) because of the number of VB errors in the error list window in Visual Studio. C# errors found in the projects I comp...

How to debug a referenced dll

My question concerns with Visual Studio 2008, although I suppose it should be that same in VS2005 I have two solutions in my workspace, say A and B. Solution A is an older project which I finished coding some time ago. In solution B, I need to use some classes from Solution A. To do so, I add a reference to the dll of one of the proje...

Unusual expiration date of Visual Studio 2010 Beta

Help/About window of Visual Studio 2010 on my computer displays "-1 days remaining" (exactly like that, with minus!). What does it mean? ...

[msvc,c++] Enable auto-build when F5 is pressed and source is out-of-date

When I press F5 and source was modified, my Visual Studio doesn't rebuild the source and runs the existing (out-of-date) executable. I need to press F7 then F5. How do I tell msvc to auto-rebuild when I press F5? This is MSVC 2005, C++. ...