visual-studio-2008

UAC/VS/W2K8: Why does VS not launch with admin privleges when I am in the Administrators group?

Server 2008 machine with SP1, Visual Studio 2008 with SP1. My user; Developer, is in the local Administrators group. That said, some actions I perform in Visual Studio (use the properties window of a web application to invoke the creation of a virtual directory in local IIS) tell me that Admin privileges are required. It is an annoyance ...

Realign namespace definitions with file structure

Like all developers with OCD I try to organise my namespaces within our project so that they match where the file they are contained within sits of disk. However after a pretty massive refactoring session within VS.NET I've moved files within projects and created new subfolders a plenty, leaving the refactoring of the namespaces to late...

Visual Studio Crashes when using Crystal Reports Group Editor

I have a crystal report in my Visual Studio 2008 ASP.NET project, and when I choose "Group Expert" from the Crystal Reports -> Report menu, Visual Studio crashes / hangs and I have to use Task Manager to close the program. This happens no matter how many times I try, and oddly enough it seems to work fine on another computer with the sa...

Skinned C# form with huge black flicker while resizing!

Hi, I'm trying to create some skinned forms (just the border and caption) with a different approach than you usually see but I'm having some issues with form flickering while I resize the form. I don't know how else to explain the problem, so here's a video I created to demonstrate the problem: http://www.screencast.com/t/AIqK9Szmz Als...

Automatically setting up unit test projects in VS2008, need help

I'm beginning to toy with the new ASP.NET MVC framework, and reading around in some tutorials I saw that in addition to creating the MVC project, theres an option to add a Unit Test project, using the Test framework (which I have) thats basically already set up for MVC testing. Its supposed to pop up when you create a new MVC project, an...

Controlling C# DataGridView with an Arraylist in VS2008

I'm having some problems with a datagridview element I'm using in VS2008. This DataGridView is actually a tab in a TabControl element. I gave it 5 colums which need to be filled up with elements from a costum Object i made. It's basically a small library application which contains a main class and several classed derived from it. They ...

Visual Studio hotkey to switch between code behind and source file?

I use the SHIFT-F7 often to switch between source and design view. Does anyone know of a hotkey to switch between the source file and its code behind file, e.g. between (Default.aspx and Default.aspx.cs)? ...

Is there a quick way to generate a <%@Register...%> line for a user control?

I make a user control and then want to include it on a page I have to always manually type the @Register line at the top of my .aspx file, e.g. <%@ Register TagPrefix="edward" TagName="GetQuote" src="~/Controls/GetQuote.ascx" %> Is there any way to automatically create these @Register lines? (I tried dragging in the .ascx file fro...

What is the best way to do cross-platform development with Visual Studio?

We are developing a number of games on multiple paltforms (DS/Wii/Xbox 360/PS3/PC/PSP). Each has their own compiler/linker and debugger. We want to use Visual Studio as the IDE and to manage the build process but use the platform specific compilers (and settings) to generate the appropriate output. We could manage the build process outsi...

How do I set the icon for my application in visual studio 2008?

How do I set the executable icon for my C++ application in visual studio 2008? ...

Debugging an ASP.NET page with QueryString values

I am trying to debug an asp.net web form that requires a value from the querystring. I just want to debug that page without having to go through the entire process to create the querystring value and sending the request. Any suggestions on how to attach a querystring value in VS2008 when I start the debugging process. NOTE: I do not ...

Visual Studio 2008 Installer Project - Custom Actions not firing

I can't seem to get a custom action working. I might be doing this wrong. Here's what I'm trying to do: I'd like to run a custom action in my application install (Visual Studio Installer project) that runs an executable. The executable simply does some system.io filecopy tasks, and I've confirmed that the executable when ran by itsel...

Is there a ReSharper template to generate a basic method?

I'm new to ReSharper and am surprised that there isn't a template defined for public void MethodName(<params>) { } I realize I could create one, but I would have thought this would have been part of the standard product. Perhaps I'm missing some other shortcut? ...

Is there a way to add a subreport to the header of an RDLC report?

I am looking for a way to add a "subreport" (or something equivilent) to the header of a RDLC report in Visual Studio 2008. I have a block of information that I would like to pass in via a parameter, but I only want to display it once. Any help would be appreciated! ...

intel compiler on vista: "unable to obtained mapped memory"

Hi all, I'm getting the following error when trying to compile C++ projects using intel compiler version 10.0.025 on vista business edition (sp1) in vs2008: unable to obtain mapped memory (see pch_diag.txt) There is no such file as pch_diag, so that's a bit disheartening. If I try to just use the microsoft compiler, all of my call...

How to create website shortcut in a VS Setup project?

How do I create a shortcut to my website in the VS 2008 Setup project? I'd like to have a shortcut created inside User's Program Menu\MyProgram , after the application is installed. I could create a shortcut to the application itself but I have no idea how to make a shortcut to an http:// address. Can anyone help? ...

Visual Studio Tips on getting headers that are used in a given project?

I have added all the header files from library in path how to get the headers that are only needed for the project ...

Dropdown items on a ToolstripmenuItem and seeing if their items are checked

I'm building a small Winform in which I can view types of food in my kitchen. My entire stock can be displayed by a datagrid view. Now, I have a filtermenu which contains a dropdownlist of items that can be checked and unchecked. Based on which items in that list are checked, the display in the datagridview is changed. Only items whic...

c# Retrieve reference to Project Resources (VS2008)

I currently have a listview and I want to add an appropriate icon to each entry. I have created an icon within the Project resources and called it 'errorIcon.ico'. How can I reference this icon/resource and use it within a listview? ...

How to surround a code block with a using statement in ReSharper?

I'm watching Stephen A Bohlen's excellent Summer of NHibernate series, and have been watching him interact with CodeRush. I've recently installed ReSharper (I'm a ReSharper newbie), and I'm trying to find some of the ReSharper productivity equivalents that Stephen is demonstrating (tangentially) with CodeRush. As an example, he demonst...