visual-studio-2008

Is there a way to force Visual Studio to render ItemStyle’s HorizontalAlign as a CSS rule and not html attribute?

1) If I set HorizontalAlign property inside GridView’s ItemStyle tag: <ItemStyle HorizontalAlign="Left" /> then Visual Studion will render this property as <td align=”center”> a) Is there a way to tell Visual Studio to instead render HorizonatalAlign property as a style rule : <td style=”text-align:center;” ... > thanx ...

Why don't the classes in the DBML designer appear in alphabetical order?

I have a DBML file with a very large data model. Whenever I need to add a relationship between to tables I have to select the other table from a combo box which appears to be in in almost random order. Is there a reason these dropdowns aren't in alphabetical order, or is there a way to put them in some kind of order? ...

Visual studio not detecting that exe is out of date after perforce revert

This is a bit of an odd situation. Here's what's happening. So, we have a VS2008 project which outputs to a number of files under perforce control. These files have the always writable flag set. I compile the project in VS, which gives me up to date binaries on my machine. If I then revert those binaries via perforce, I have the versio...

Visual Studio Macro To Switch Solution Configuration

I'm trying to write a macro that toggles between release/debug solution configurations in Visual Studio. It appears I can switch the configuration by using 'DTE.ExecuteCommand("Build.SolutionConfigurations", "Debug")'. Is there a way I can 'read' the value? Or is there a way I can use macros to 'focus' on the solution configuration UI...

Redraw and flicker issues

I have an Outlook style app. So basically I have a sidebar on the left and on the right I have a panel control (pnlMainBody) that hosts content. The content is typically a user control that I add to the panel when user clicks appropriate button in the side bar. The way I add the user control to the panel is as follows: // _pnlEmail...

What exactly is the "Multi-threaded Debug DLL" Runtime Library option doing in VS 2008?

I have a solution in VS 2008 that creates a DLL. I then use that DLL in another application. If I go in to the DLL projects property pages and change the following configuration for a DEBUG build then the built dll no long provides the desired functionality. If I change it back and rebuild the DLL, then the DLL does provide the correc...

Deadlock sample in .net?

Can anybody give a simple Deadlock sample code in c# ? And please tell the simplest way to find deadlock in your C# code sample. (May be the tool which will detect the dead lock in the given sample code.) NOTE: I have VS 2008 ...

how to write unicode hello world in C on windows

im tyring to get this to work: #define UNICODE #define _UNICODE #include <wchar.h> int main() { wprintf(L"Hello World!\n"); wprintf(L"£안, 蠀, ☃!\n"); return 0; } using visual studio 2008 express (on windows xp, if it matters). when i run this from the command prompt (started as cmd /u which is supposed to enable unicode ?...

Problem: .vbproj the project is not supported by this installation

Possible Duplicate: .vbproj the project is not supported by this installation I have visual studio 2008 installed in my pc when I try to open a .Net 2005 Solution with multi-projects, there are project in vb and c#. The only web project on this solution display the following message: .vbproj the project is not supported by th...

Why does Visual Studio 2008 change namespace characters in a generated file?

Hello, I am working on a asp.net 3.5 project in sweden, where some of the namespaces include swedish characters, such as 'å', 'ä' and 'ö'. When building the project and generating the design-file, visual studio replaces these characters with some other strange characters. This only happens when the characters occur in a namespace or cl...

How to Auto tag Mercurial on Visual Studio Publish?

I am using TortoiseHg + VisualHg on Visual Studio 2008. Has anyone found way to automatically create a tag (with the published version number) in Mercurial whenever I do a publish from VS? ...

VS 2008 Compiler option for flagging uninitialized variables.

Is there a compiler option in VS 2008 (C++) to expose uninitialized variables? I'm trying to debug a problem where the "release" build of a DLL does not work but the "debug" build of the DLL does work. ...

Change default font of controls in winforms

Hi, Is there any way to change default font of controls in winforms. I must change font in about hundred font in recent project and it's coming next project with other fonts and I wanna at start setting properly fonts. ...

Custom Web User Control Repository for dynamic loading

Hi everyone, I need to build a application that dynamically load custom web user control. Those user controls will be builded by other users and included into a project. In the other hand, in another project, these controls will be consumed and dynamically loaded into the pages of this project. This is for easily customize forms and st...

VS 2008 IDE keeps stopping on jQuery errors

I just installed VS2008 on a brand new Win7 machine and have started at a new company. I am now running the company's main project and all is well...except that, for some reason, .Net keeps breaking on some javascript errors. This isn't in the browser (although it only happens when running IE, in this case version 8). I'm at a loss as...

"Illegal characters in path." Visual Studio WinForm Design View

I am putting together a lightweight MVP pattern for a WinForms project. Everything compiles and runs fine. However when I attempt to open the WinForm in design mode in Visual Studio I get a "Illegal characters in path" error. My WinForm is using generics and inheriting from a base Form class. Is there a problem with using generics in...

XML multiline comments in C# - what am I doing wrong?

According to this article, it's possible to get multiline XML comments -- instead of using ///, use /** */. This is my interpretation of what multiline comments are, and what I want to have happen: /** * <summary> * this comment is on line 1 in the tooltip * this comment is on line 2 in the tooltip * </summary> */ However, when ...

How can we reset the configuaration in VS2008_C++

hi . How can I reset the configuration parameter in VS2008 C++ I misconfigured my project ...

where can i get a tutorial for using visual studio installer

Anyone have suggestions on good tutorials or examples of how to create MSI packages using visual studio? In particular, I'm interested in creating a deployment package for an ASP.NET website. ...

Crystal Reports: How do I use verify database with updated .Net objects?

I am using the Crystal Reports designer that came with Visual Studio 2008. My report's data source is tied to a .Net class from my project (i.e. Database Expert > Project Data > .NET Objects). I've updated my .Net class with an additional property that I would like to use in my report. When my report's data source is tied to a databas...