visual-studio-2008

Windows shortcuts without a path

Hi all 'Regular' windows application shortcuts have a target which is a path to an executable file. This path is visible (and editable) in the shortcut's properties dialog. But many shortcuts have no such path, only a (read only) application name is displayed. All the MS Office programs, for example, have such shortcuts. How do these ...

Visual Studio 2008 - Status Bar Icon Glossary?

I have scoured the help files for Visual Studio and could not locate any information as to the meaning of some the icons in the status bar along the bottom of the main window of the IDE. Does anyone know of a reference? Specifically, there is an icon that shows a pair of binoculars over an animated page with boxes scrolling down it. ...

Enable/Disable BindingNavigatorItems based on selected row

I have a winForm with a dataGridView containging members of a team. These members each have an assigned role and other properties that are listed in a column in the grid but for the purpose of what I want to achieve they are irrelevant. I've also added a bindingNavigator with add, edit and delete buttons. What I would like to implement ...

Automatically create new user and silently use for Windows service installation using Visual Studio Installer

I have a Windows service that is installed using the Visual Studio (2008) installer. I wanted to avoid running as System, so I have been manually 1) creating a new Windows account on the computer and 2) entering in the computername\username and password during installation. I would like to have this require little user intervention, ...

How do I tell VS 2008 to stop putting byte-order marks in front of my files?

By default, Visual Studio 2008 puts the Unicode byte-order mark in front of any file you save. You can override this on a per-file basis by going to File > Advanced Save Options and picking a different encoding. How do I tell VS to use a default encoding for all files in a particular project or solution? This is drastically screwing up ...

Error deploying database in VS 2008 w/ SQL Server 2005 size must be at least 3MB?

I'm getting the following error deploying my database in VS 2008 with a local SQL Server 2005. I deployed other databases, but this one seems to fail. Bsg.COC.Database.dbschema(0,0)Error TSD01268: .Net SqlClient Data Provider: Msg 1803, Level 16, State 1, Line 1 The CREATE DATABASE statement failed. The primary file must be a...

Using Visual Studio Image Library PNGs in a Windows Form app

My question is about the Visual Studio Image Library that comes with VS2008. In the _Common Elements\Annotations folder, there are PNGs with multiple sizes and I was wondering what the intended use of these is. Is there an standard way to implement these images, e.g. in a Windows Forms status bar? Here are three of the PNGs as an exam...

Visual Studio 2008 Test Sets

Is it possible to group tests together so I can run a subset of all tests available? ...

Is there a setting or good add-in for Visual Studio to color lines (like Throw) in the editor?

Is there a setting (didn't find one of hand) or good add-in (SO is better for recommendations than Google) for Visual Studio to color lines specially in the editor depending on what keywords or statements it contains? For example, if a line contains "Throw", it'd be nice to see either that word or the line in red, similarly for "Debug.A...

User scope vs Application scope in app.config

What is the difference between the User scope and Application scope in app.config? ...

Catching exception in code

I was trying this piece of code to check whether the divide by zero exception is being caught: int main(int argc, char* argv[]) { try { //Divide by zero int k = 0; int j = 8/k; } catch (...) { std::cout<<"Caught exception\n"; } return 0; } When I complied this using VC6, the catch handl...

How to integrate SQL Server Express with VS C# Express

I have just installed VS C# Express 2008 which includes SQL Server Express 2008. It all went ok and I can see VS C# and SQL Server in the list of installed products. When I start VS C# it looks fine but in the DB Explorer / Data Connection context menu the option 'Create new SQL Server Database' is disabled. I have uninstalled all VS p...

Changing Visual Studio 2008 New Tab Position

One of my pet peeves ever since Visual Studio 2005 (behavior is unchanged in VS 2008) came out was the placement of the new tabs when opened. These opened on the left of current tabs which was the opposite of where new tabs opened in Visual Studio 2003 and beyond. In my opinion opening new tabs to the left of current tabs is counter-int...

Different mscoree.dll entry points on the desktop & on a device?

In a smart device project I'm trying to Pinvoke a function that should supposedly be available in mscoree.dll. The associated definition is as follows: [DllImport("mscoree.dll", EntryPoint = "#29")] internal static extern int Object_GetHashCode(object obj); You'll find this with Reflector in the internal class EE in mscorlib.dll. Note...

What happened to my VS Team project bindings?

I'm new to using Team Explorer, I create a new project in source control using VSTS, then I see the plus signs, check marks etc. Then I closed the project and reopened it, all the plus signs and check marks are gone as if the project is not under source control. Why is this happening I wonder? Thanks, Ray. ...

How do you remove the bindings from a VS Team project?

How do you remove the bindings from a VS Team project, is it just a matter of deleting ".vspscc" files? What is the best way to do this, say I have a project on CodePlex and it is time to package it up for release, but by default the bindings come with the source so when others open the solution it interferes with it. Thanks, Ray. ...

can i install and run visual studio 2008 on vista ultimate 32 bit ?

hi guys i m new on vista i just want to install visual studio 2008 on vista ultimate 32 bit so can any body tell me tht visual studio 2008 will work properly on vista ultimate 32 bit? Infact i want to work on asp.net with c sharp so some one told me that IIS doesn't work properly on vista so i want to confirm that it is work properly or ...

Good UML designer for Visual Studio 2008 Professional Edition with code generation

What is the cheapest tool I can buy to allow visual UML design that has code generation abilities bearing in mind it's currently Visual Studio Professional, not Team studio. I'm trying to achieve the ability of visually creating the namespaces, classes, main paramters and functions in new developments so I can explain show the class lay...

Visual Studio 2008 macro question

I have been trying to write a short macro in Visual Studio that activates the FindSymbolResults (Constants.vsWindowKindFindSymbolResults), and then moves to the next item in the list (if anyway) and calls Edit.GotoReference on it. The first and last parts - show the window and call Edit.GoToReference - are done, but I am struggling with...

VS2008 and ClearCase : opening solution requests a checkout for no reason.

I have a little issue that's causing my automated builds to fall over. When we open a solution recently converted from VS2005 to VS2008 VS through ClearCase requests that we checkout the solution file. If we allow it then it makes no changes anyway and by default ClearCase doesn't like checkins without changes. So we undo the checkout...