visual-studio

Trying to supress resource warning in Visual Studio

I want to suppress the "The resource name 'X.Y' is not a valid identifier" warnings in Visual Studio 2008. I cannot find the warning number to supress it in the project's properties. Is there another way of achieving this, or better still, does anyone know the warning number? Thanks :) ...

Strange Property Override in DataGridViewTextBoxCell.

If you look at the DataGridViewTextBoxCell property, ValueType, in reflector, you can see it overrides a property from DataGridViewCell. The strange thing is, is that the overriden property is readonly, but the property in the parent class is read and write. I can only presume that the property has been shadowed and reflector doesn't ....

Visual studio's debbugging and firefox

While I am debugging an app I notice when I try to open firefox when stepping through it will not pop up. I either have to run it or stop debugging. Does anyone know why? I don't use webcontrol, only WebRequest which AFAIK has nothing to do with firefox. also that section of code doesn't do anything with WebRequest. ...

A network-related or instance-specific error occurred while establishing a connection to SQL Server

Hello, I'm very frustrated. I have a website running on Visual Web Developper 2008 Express with my local database, everything works great. I also have the same web site running on a production server. Everything was working great but tonight I did a "reset" on production. 1) I deleted a couple of table, recreate them and insert data. E...

Why does Visual Studio warn me that Administrator permissions are recommended?

I have UAC turned off and am running VS 2005 from an administrator account and I get this message. Also, when I try to add existing web site to a solution from VS 2008 I get a message saying I must run VS in the context of an administrator account. ...

PostSharp and debugging problems?

I've made a very simple aspect, and found a problem when debugging it (see code). I set a breakpoint on the method exit, and it hits inside "entry" method actually. PostSharp 1.5, Visual Studio 2008 SP1 Is this a known bug, are there any workarounds? class Program { [MyAspect] static void Main(string[] args) { Console.WriteLine("bo...

How should I call a .NET exe that is distributed with my main application

I have a .NET Windows application that needs to call another .NET executable. I want to distribute this other exe as part of the main project, and was wondering what is the best way of implementing this. We don't want to take the code from this second exe and put it in the main project as we need the exe to effectively remain sealed, as ...

How can I view SQL Generated by Visual Studio DataSource?

I've got a data source in Visual Studio. Is there any way to view the SQL that it generates before it sends it to the database? I don't just want to see the SelectComand, InsertCommand properties which are part of the asp:SqlDataSource, I want to see the query once the parameters have been filled. Is it possible to do this from Visual St...

WebTesting using VSTS 2008

I've been trying to create and execute webtests for one of my websites using VSTS 2008 SP1. The problem is that during playback VSTS does not play back the javascript. How can i solve this and where can I find comprehensive information on configuring VSTS to do web tests exactly as i want. ...

VS.net set version for multiple projects in one solution

I am trying to update a lot of different projects in a solution to have a new version number. Is there a simple way to synchronize the version number across all projects fileversion and clickonce options? ...

compiling C++ static library for 64 bit windows platform using VS2008

ith Visual Studio 2008, If the configuration type is a static library, I dont see a linker option in project properties. I need to specify /MACHINE:x64 option for a static library. I tried to specify this in command line option in Librarian. Only then I could build the static library. If I dont specify /MACHINE compiling the static lib f...

vs.net go to parent class (shortcut)

Is there an easy way open the parent class code file in visual studio. I know i can use the inherits and go to defintion to go to the base class in C#. But in vb.net the inherits is hidden in designer code for a lot of files I am working on and I'm looking for a simple way to open the parent class. Bonus points for whoever gives me a ...

tab order in dialog box

I'm using an old version of Visual Studio that provides only the 'interactive' method for setting tab stops. Is there anyway to clear all the tab stops before setting them? Or anyway to exclude a given control from having a tab stop? Added 10-sept-2009 Part of my problem was confusing tab stop order and tab stops. I naively assumed s...

Visual Studio Publish fails on bin directory

I'm using Visual Studio 2008 SP1 and a web application that I'm trying to publish to a local directory fails even though the project builds ok. It doesn't give any build errors nor does it show anything in the Output window of why it failed: Publishing folder bin... ========== Build: 2 succeeded or up-to-date, 0 failed, 0 skipped =====...

Browsing Classes, Objects, etc.

Question ONE: I'm still pretty new to .net, but have used Visual Studio for a few recent projects. I'm now working a new project and I was wondering if visual studio had anything built in that would allow you to browse all of the details about a control, etc.. Is MSDN the best place to go for this? For instance if I wanted to see of...

is it possible to get Visual studio to index source code to improve string search?

I often use the string search feature for an entire solution in VS2008. Is there a way to improve its search speed by getting VS2008 to index all the source code and config files, similar to how Google Desktop index files? ...

Build Boost-powered solution in VS

Boost rocks, it is great and extremely powerful, but I hate it everytime I build solution in my Visual Studio 7.1. It seems Boost has impact on build time (not positive). I cannot remove all Boost usage from my project to compare build times but I tried it on small projects and the difference is meaningful. I guess the problem is tha...

Visual C++ Precompiled Headers errors

Update: What are the effects of including stdafx.h in my header files? I started on a C++ project in Linux/Eclipse CDT and imported it into Visual C++/Windows. In Visual C++, I started using precompiled headers to speed up compilation and defined stdafx.cpp and stdafx.h. Here's my stdafx.h #pragma once #include <string> #includ...

C# AIM Bot Not Loading Libraries from AOL SDK

I am trying to get an AIM Bot set up in C# and I am having issues with the Assemblies. I have tried placing the DLL files in the BIN folder of the project and in the windows/system32 folders. I have registered the DLL files so that I could add them to the project in VS2008. I also attempted the install them into the GAC but I keed get...

VS2008 Web Deployment Project AfterBuild

Hi all, I am experimenting with the build file that is part of web deployment project. My goal is do something in the "AfterBuild" target. I am doing the following: <Target Name="AfterBuild"> <MakeDir Directories="$(TargetDir)\Upload" /> </Target> For some reason the folder never gets created. Any idea why this is happening? ...