visual-studio

Finding unneeded library references in Visual Studio.

I seem to have gotten a bit carried away with the number of libraries I'm referencing in a ASP.Net MVC web application I'm working on. Is there any tools or features already built into Visual Studio 2008/2010 which indicates to me which references I don't need? ...

How can I make a Visual Studio addon that posts my code to a website?

I'm trying to create an extension for Visual Studio that will post code from a given method and possibly the error message to my blog. I'm building a small wordpress blog for common mistakes I make so I can browser them later on possibly and help people out with the same issues. Is this possible in Visual Studio? ...

How can I add a Window to my Visual Studio?

I created an Add-in project and now I have this in my solution explorer: Do I just add right click the solution and add a Windows form? I'm not sure how this works and the tutorials I find don't touch on this. Thanks. ...

Put a title on collapsed oulining in Visual Basic Express 2010

When I select an area of text in Visual Basic Express 2010 and then go click Edit/Outlining/Hide Selection; the area collapses and is represented by three dots like "...". Is there a way to put my own title, description or label on it for better meaning and communication? ...

Should you name all of your UI controls? What naming scheme do you use?

This can be applied to any language/UI project. When the code is automatically generated, is there a need to name all of the UI controls? Presently I only name the ones I am referencing in code (although admittedly sometimes I get lazy and leave them). Or do you stick with the pre-generated names (textbox1, splitContainer1, menuStrip1, e...

C/C++: How to figure out the chain of header files for a given definition?

In Visual C++, one can find the header file where any name (variable or type) is defined by pressing F12 on it or choosing Go to Definition. This feature is very useful, but it only shows the final location (header file) where the name is defined. Is there a way to figure out the chain of header files that lead from my source file to the...

how do i change the fonts in the BIDS package designer?

i went to: menu > tools >options > fonts and colors > business intelligence designers...but nothing happened when i changed the font size. i'm using visual studio 2008 what am i missing here? ...

How can i use js files in master pages?

i have a master page. i try to add js files. vs editor is not draw green color. But no affect my pages with js. i can not use below js. How can i write src? (i can use pickurl) but i don't see effects of js on page <script src="Engineering/EngDynamicsCreationExcel/EngJs/jquery-1.3.2.min.js" type="text/javascript"></script> <script src=...

"cannot open file" compiletime error

Problem Description: Occassionally when debugging, I get the following error. I'm using visual studio 2010: 1>------ Build started: Project: projectName, Configuration: Debug Win32 ------ 1>LINK : fatal error LNK1104: cannot open file 'C:\Projects\projectName\Debug\projectName.exe' ========== Build: 0 succeeded, 1 failed, 0 up-to-date,...

Help needed with Visual Studio Macro

I've got a macro that adds the copyright header to my VB files, but unfortunately it's not behaving as expected. Here's the Macro Imports System Imports EnvDTE Imports EnvDTE80 Imports EnvDTE90 Imports EnvDTE90a Imports EnvDTE100 Imports System.Diagnostics Public Module CopyrightCode Sub AddCopyrightHeader() Dim doc As Do...

RichText Debugger Visualizer Gone wrong

Since I do a lot of debugging with Rich Text manipulations, I decided to write a simple "RTF Debugger Visualizer" which looks like this #region Namespaces using System; using System.Diagnostics; using System.Drawing; using System.Windows.Forms; using Microsoft.VisualStudio.DebuggerVisualizers; using RtfVisualizer; #endregion [assembly...

How to make database connection string available to user.

Hello Friends, My problem must surely be easy to solve for someone who's more familiar with Visual Studios than I am. In the long run, I'm trying to publish a database application along with a config file that allows the user to change the connection string and connect with whatever database they wish. So, per the recommendations of [...

Need help enhancing a Visual Studio Macro

Here's my current Macro Public Module CopyrightCode Sub AddCopyrightHeader() Dim doc As Document Dim docName As String Dim companyName As String = "Urban Now" Dim authorName As String = "Chase Florell" Dim authorEmail As String = "[email protected]" Dim copyrightText As String = "' ...

Visual Studio - automatically add necessary spaces to comments

When I'm writing comments in my code, I often forget to add the initial space after the comment identifier. 'this is a comment when really it is supposed to be ' this is a comment I realize this is quite trivial, and you could simply say "just add the damn space you idiot", but I'd really like to automate this so that I just ...

Visual Studio add-in for C#-development

Hi there. I want to write my first Visual Studio 2010 add-in. My aim is to create an add-in that helps to automatically generate code for things like: implement superclass constructors create delegation methods for composed object etc. Of course, in order to know what to generate, my add-in must have a knowledge of the code-file the...

Visual Studio Macro - Read first X lines instead of entire document

I've got a macro that updates a copyright header with the most recent edit date. The problem I have is that the macro currently reads through the entire file rather than just the first 6 lines (which is all it needs). Is there a way to get the Macro to only read the first "X" lines rather than the entire file? Private selection As Env...

C#, WPF, Visual Studio 4: irregular shape color filling

I am creating a Paint application with C#, WPF, and Visual Studio 4. Just like MS Paint, the user can draw lines and shapes. How do I fill a user drawn irregular shape with color? Is there a library for doing something like this? Detecting a closed loop that is created by lines seem like an impractical approach. I can imagine all ...

ASP.NET Development WITHOUT Visual Studio.

Hi All, I have a website that I hand coded myself, and now I want to use ASP.NET, so a few weeks ago I opened my html files inside Web Developer, and to my surprise as I made changes to the files in the Designer, everything just went out of whack. Things weren't where they were supposed to be etc. So, are there any sites online (I'd pre...

Visual Studio 2008: How to view “Advanced” properties in the Properties window?

Whenever I click on an object in the Solution Explorer, in the Properties Dialog, all I can see are the "Misc" properties, usually File Name and File Path, but I need to see the "Advanced" section. Under Tools -> Options -> Text Editor -> C#, there is a checkbox labeled "Hide advanced members". This was unchecked by default, and I've tri...

Web Application working in VS Development Server but don't work in IIS

I've a ASP.Net application which utilizes SQL Server Stored Procedures and Web Services using Windows Authentication. The idea is to use the logged in user credentials for invoking the web service (This is critical since the web service use the authentication credentials to assign the owner of the created or updated record) and for execu...