How do I add existing C# files to a VS 2008 C# project without VS 2008 copying the files to the project folder?
When adding existing C++ files to a C++ project, VS 2008 doesn't copy the files. It simply use the file paths.
...
Hi,
I have an ASP.NET web application with a web forms projects with dependencies on several business class library projects and a WCF project. This was built with Visual Studio 2008.
I take this source code folder tree to another PC and copy under C:\Inetpub\wwwroot , open IIS and in the properties of the above folder, create applica...
Certain non-project files that I use Visual studio for (.build, .xml, free-roaming html and css files) are already associated with visual studio and open in it when i double click them.
How can I get them to open in an existing instance of visual studio? Right now If i double-click the same file twice, it will open two instances of ...
I've Googled, I've Caspol to death, but I still cannot load a VS2008 solution from a drive on the host machine. I get the project location not trusted message.
When I try:
Caspol -q -machine -addgroup 1 -url file://d:/* FullTrust -name "D Drive"
VS2008 starts to open the solution, then crashes with no error message - just disappears....
I am running Visual Studio 2008 with SP1. When I debug an application, it will skip over my break points.
For example, I have two lines of code, each call a method. I will put a break point on both lines. I will run it one time, and it ill stop at the first break point, but not the next one. I will run it again, and it ill hit the secon...
Hi all!
I've issue with VS08. I've got Web Application project (vb.net). Whenever I try to open an aspx or ascx (in Source view - just double clicking on Solution Explorer) the file opens, but VS hangs and is not responding. The only way to restart VS is then by killing it's process. And it happens all the time with these types of files....
I have an application which uses the MS-Word API.
I get stuck when trying to use the function Document.Open(Filename) which is the function that is opening a document.
It doesn't matter if I run in debug or release mode.
Any help would be appreciated.
Thank you,
Guy Marom
...
I have a number of Inherited User Controls, for each User Control I sometimes have overridden event Handlers for the Buttons on the Control. (To allow for Child specific behaviours to occur)
Is there a way of viewing all the Event Handlers associated with a particular component?
The problem being that on one of the Buttons, the event h...
I have a large amount of code for an MFC/ATL program that I would like to use in a windows form appllication. What is the easiest way to "convert" this code so that it compiles with /clr enabled and finds the basic classes, e.g. CObject, CString, CFile and the templates?
...
SOLUTION:
Thanks to Patrick below, I have refactored the C# CodeProject version into a VB.NET version that works for me. Hopefully it can help you guys as well:
Partial Public Class WatermarkedTextBox
Inherits TextBox
Private _waterMarkColor As Color = Color.LightGray
Public Property WaterMarkColor() As Color
Get
...
I have a project I'm working on where I have a team that is located in two different locations. We are using a source control system that integrates with VS 2008. We have created a solution folder where we store different web.config files so the different locations can pick and choose which configuration they need to use to run the pro...
I just upgraded to VS2008 Sp1, and I have a weird issue going on. I get a lot of errors from my code behind pages indicating that a control doesn't exist in the current context and I am also getting an errors that the pages do not have methods.
It seems like ide is trying to compile the c# code without compiling the aspx code.
The sit...
When I start debugging the project we are currently working on, the program window is not given proper focus in windows but is stacked behind the Visual Studio window. I don't think this problem occurs on any of my team members computers, so it looks like it's a problem on my system.
Is there a setting in VS2008 for always on top or som...
I am using Visual Studio 2008, when I start up an Asp.net project that starts IE6, I do not see any jscript file in the “Script Document” folder in the Solution.
However if I start up IE by hand and point it at my website, then attach the Visual Studio 2008 debugger to IE, it does show the jscript files in the “Script Document”. Howe...
I have a situation where I'm trying to deploy an application update via ClickOnce to many users, but on some it's failing with an error saying that they need Office 12.0.0.0 in their GAC.
This happened after I installed Office 2007, so I uninstalled 2007 and reinstalled Office 2003, then re-built/re-published the app. Fixed it for so...
Visual Studio does a lot to help you make sure that your html/xhtml is valid and well formed. This is nice except for when you are breaking those rules knowing full well what you are doing and why. I really would like to 'turn off' the validation messages that tell me that css 3 named colors are not valid for the version of css it thinks...
Visual studio designer for asp.net applications is generally very slow and i would like to know if there are any tips or guidelines for settings in order to get better.
The problem is usually noticed when i try to make a change in design or source view, especially in source view it may get non-responding for a couple of seconds.
...
I have a WinForms form that won't close. In OnFormClosing, e.Cancel is set to true. I am guessing that some object in my application has bound to the Closing or FormClosing event, and is blocking the close. To find out, I'd like to determine what delegates are bound to one of these events.
Is there a way to determine the list of handler...
I am writing a small application at the moment and am trying to organise my build output to be a little closer to the finished product. The application is made up of a number of different projects. There is a core library that contains most of the functionality, a GUI app and a command line app that both reference the Core Dll, and a num...
Hello,
I can't seem to find the "Build" option under "Configuration Properties" folder in the Property Pages of my project. I've been looking everywhere trying to figure out how to do it.
I followed the direations here: http://msdn.microsoft.com/en-us/magazine/cc302121.aspx
More specifically here: http://msdn.microsoft.com/en-us/libr...