visual-studio-2008

VS2008 or ReSharper shortcut to delete line

Which shortcut deletes the whole line where cursor is? ...

Ignore code analysis rules in Visual Studio

How do I ignore a specific VS code analysis rule (say CA1305 : Microsoft.Globalization) within a: Method? Class? Namespace? (Assuming these options are all possible.) ...

Read from text file into ListBox

I want to read the values of each rows in a textfile to a ListBox control. The file needs to be uploaded on the client side. I have the code to read from a fixed file but I don't know how to upload a file and then read from it. The code to read from a normal file is: protected void Button1_Click(object sender, EventArgs e) { FileI...

Upgrade from ASP.NET 1.1 to ASP.NET 2.0 now web service call fails

I have an ASP.NET application that I've upgraded from version 1.1/Visual Studio 2003 to Visual Studio 2008 (.NET framework 3.5, ASP.NET 2.0). A call to a web service outside of my application (but inside of our network and firewall) that used to work fine in the old version is now responding with: The request failed with HTTP statu...

VS2008: Autogenerated files and XML documentation

This is an annoyance more than a problem. My project contains a number of autogenerated files (using mgmtclassgen.exe). When I generate the XML documentation, my beautifully commented library is plagued by xml documentation warnings from these autogen files. Is there a way to either a) suppress generating documentation for these files ...

Starting a new Outlook 2007 Message from C# .NET

Hello, I'm looking for the most barebones complete example, to launch Outlook 2007 with a new message started via C# .NET (I happen to be using VS2008 .NET 3.0) Here's what I'm trying: using System; using System.Collections.Generic; using System.Text; using Microsoft.Office.Interop.Outlook; namespace CreateMessage { class Progra...

sort filtered gridview

I have a filtered gridview in an updatepanel. I want to allow to sort filtered data. How can this be done? When I click to sort a column it reloads the entire gridview. ...

TinyMCE and Viewstate verification failed. Reason: Viewstate was invalid.

Visual Studio 2008 .NET 3.5 I'm using the built in web server to test, and everything works fine. My TinyMCE code is the following: <!-- TinyMCE --> <script type="text/javascript" src="/tiny_mce/tiny_mce.js"></script> <script type="text/javascript"> tinyMCE.init({ // General options mode: "textareas", theme:...

How can I have Visual Studio 2008 server still server site while not debugging?

In Visual Studio 2008, I'd like to have the internal web server still serve my website on the designated port even after I've stopped debugging. In other words, if my site runs on localhost:2923 once I begin debugging, after I stop debugging I'd still like to go there to have the site run (not in debug mode). Sometimes this works and s...

How to include directories in cmake generated visual studio projects?

I have (roughly) the following CMakeLists.txt project(Test) set(SOURCE 123.cpp 456.cpp ) find_package(Boost COMPONENTS unit_test_framework REQUIRED) include_directories(${Boost_INCLUDE_DIRS}) link_directories(${Boost_LIBRARY_DIRS}) message("${Boost_INCLUDE_DIRS}") add_executable(Tests ${SOURCE}) The message generated by message...

qmake and multiple MSVS versions

From Visual Studio 2008 Command Prompt I run this command to generate .vcproj file: >qmake -spec win32-msvc2008 And get a warning message: WARNING: Generator: MSVC.NET: Found more than one version of Visual Studio in your path! Fallback to lowest version (MSVC.NET 2008 (9.0), MSVC.NET 2008 Express Edition (9.0), MSVC.NET 2005 (8.0), ...

Installing Visual Studio 2008 TS after Visual Studio 2010 Beta 1

Hello I recently installed Visual Studio Professional 2010 Beta 1 and noticed that most of the install directories were independent of "shared" directories (I have Visual Studio C++ 2008 Express installed and didn't notice any conflicts). If I install the full version (non-beta/trialware), of VS 2008 TS, will it conflict at all with th...

Message loop gets blocked when application menu has the focus

Hi, I'm developing an application that looks mainly like this: while (true) { while (PeekMessage(&Msg, NULL, 0, 0, PM_REMOVE)) { TranslateMessage(&Msg); DispatchMessage(&Msg); } DoSomething(); Sleep(1); } What I noticed is that DoSomething() doesn't get called when I click on the menu bar (displaying ...

Open Visual Studio project as readonly

Scenario: I'm using svn:externals to grab Microsoft.Practices.ServiceLocation from CodePlex. However, referencing the csproj-file in my own project causes an upgrade from 2005 to 2008. This makes my copy of the project file different from the base copy, and I am unable to update the project from subversion. An update of ...\deps\Micro...

JS file not being updated when testing ASP.NET MVC app with VS2008

Hi, I have a MVC app developed in VS2008. When I run the app the changes I made to a JS file are not being updated. Is this the browser problem (IE7) or VS2008 dev server problem?? If I use Firefox it is updated? Malcolm ...

C#: How to combine TrackBar with ProgressBar

Is there a reasonably simplistic way to combine a trackbar with a progress bar? What I'd like to be able to accomplish it so that the progressbar only goes up to the trackbar when a button is clicked. This is mainly for learning purposes but would be nice to know how to use it in a practical way as well. Thanks in advance. [edit] Like ...

Visual Studio 2008 - Un/Comment button for css

Is there a way to add a comment/uncomment css line/s button to the menu in the VS2008 css editor? Other than adding a macro. Thanks. ...

Cannot install WinMo 6.1 Standard SDK with VS2008 Pro

I'm trying to install the Windows Mobile 6.1 Standard SDK Refresh on my Vista SP2 machine. I have Visual Studio 2008 Professional with SP1. Everytime I try to install, the installer tells me Visual Studio 2005 Standard SP1+ is required. There is no option to continue. Googling this problem I've found many forum posts stating Visual S...

How do i add a second code behind file to a xaml file?

In visual studio i want to add a second code behind file to a xaml window (my main form). i know i can have another (or as many) files that form partial parts of a class, and if they are in the same project they will be included, but can i make more than one file sit in the expander (in the solution explorer) when i expand the xaml file ...

a virus in my visual c++ 2008?

Hey, so after a few months with JavaScript I decided to head back to my sweet c++. I started a new project and for the fun of it tried to compile the default file the comes up. now, everything looks weird already. the 'create project' wizard doesn't look how I remembered it. heck, even the main function is written differently now: #inc...