visual-studio-2008

Visual Studio 2008: Change the font size of line number.

Is there any way to hack visual studio so that it displays the line numbers in smaller font size like the way Notepad++ does? I'm using Consolas at size 12 and the line numbers just look so ugly. Thanks. ...

Can anyone explain why macro creation and running in VS2008 is so excruciatingly slow?

Hello folks. I work with VS2008sp1, but the same problem was in VS2005 as well. Creating and running macros are so slow, that I prefer doing it Notepad++. Still, if anyone can indicate a reason and how to fix it, that would be great. Thanks. ...

Opengl on PictureBox toolbox in Visual Studio 2008.net

Hello, How can I use Opengl in PictureBox toolbox in Visual C++.I didn't come across any document on internet.Do you know any document,tutorial,code example etc. about this topic? Could you help me please? ...

VS 2008 The operation could not be completed. Not enough storage is available to complete this operation.

On updating my working copy from SVN. I get this error. The operation could not be completed. Not enough storage is available to complete this operation. This error also corrupts my all reference in main project ( not in DAL not in BLL). and I have to add all (.net or 3rd party dlls) again. It was working OK but I am getting this e...

How to debug the debugger of visual studio 2008 when debugging a multi threaded application ?

That's a hard title, let me explain what I mean, currently I'm programming a multi threaded application, and when I set a breakpoint in my code : Sometimes the breakpoint doesn't break, Sometimes the debugger can't evaluate variables, Every time, Step by step doesn't work as expected (it jumps anywhere) My multi thread app has 2 th...

Macros in Visual Studio 2008

Is it possible to configure Visual Studio 2008 to automatically remove lines in a sql file like this: prompt PL/SQL Developer import file prompt Created on jueves, 30 de julio de 2009 by pepe set feedback off set define off prompt Disabling triggers for MYTABLE... alter table MYTABLE disable all triggers; Remove lines that starts wit...

How to Programatically get a Browser Pointer from Firefox Main Window

I want to get the WebBrowser Pointer of firefox How to get it using VC++ as Development Environment ...

Block All User Input when iteracting with server

Hello, I have some actions that interact with the server and take some time... i'm trying to block all form fields in a page when i'm interacting with the server... I thought of finding all controls in a page dynamically and setting enabled=false inside update panels and enabling them again when finished.. but I don't think that this i...

VS2008: Make a non-LINQed website LINQed

Hi I've recently started playing around with ASP.NET and I was just about to connect to a database using LINQ, when I realised that you have to change a bunch of stuff in the project first if you created a normal web site project in Visual Studio 2008. All the information about LINQed projects in VS2008 that I have found start directly...

Move page specific jscript and css to another file with a macro in visual studio

I'd like to create a macro which moves all my page specific style and javascript to named files. For example: default.aspx contains <html> <head> <title>Weeee</title> <link type="text/css" rel="stylesheet" href="../content/style.css"/> <style type="text/css"> /*page specific style*/ </style> <script type="text/javascript" src="../con...

How do I generate a precompiled DLL of a Web Site Project when building that project or its solution?

This might be a duplicate question as I have found a few that are similar, but not exactly the same. The title pretty much says it all, but here are the details: The basic setup I have in VS2008 is two web site projects (not web application projects!) living in the same solution; call them A and B. A depends on B, since B contains a use...

Is it possible to redefine the default snippet for assigning a function to an event in C#?

When assigning a function to an event and pressing tab Visual Studio helps by putting a default function name. For instance, when I type: qp12.Form.OnGetHtml += and press tab Visual Studio completes this line as follows: qp12.Form.OnGetHtml += new GenericForm.DelegateGetHtml(Form_OnGetHtml); If I press tab once again VC will genera...

Is it possible to use a Maskeditextender for IP Adress?

Hi there! I'm using AjaxControlToolKit for an application and I'm using the MaskEditExtender on a TextBox. This TextBox will be use to get something like an IP address (I.E.: 999.999.999.999 OR 999.999.999.*). I've no difficulty to make the first one (999.999.999.999) but how can it also allow the * instead of the 999? Is it possible? ...

Disable design view on code-behind page

I often hit F7 when viewing the .aspx page I am working on to get to the code-beind, but sometimes just out of natural habit I hit F7 again (not sure why, but it happens often enough to be frsutrating). Hitting F7 on the code-behind switches to design view for the .aspx which often times takes a while to render. I already have 'sourc...

The ProxyFactoryFactory was not configured.

We have recently upgraded our windows forms C# project from NHibernate 2.0 to 2.1. We updated our app.config to include the "proxyfactory.factory_class" to point to the chosen proxy ("NHibernate.ByteCode.Castle" in our case). After the upgrade the program builds and runs as expected, with no issues. Our problem is when attempting to open...

Ctrl Shift R in Visual Studio 2008

I am learning .Net after many years of Java programming. In Eclipse we have Ctrl Shift R to open any resource in the project. Is there a similar keystroke in Visual Studio 2008 or is the best to use the Find in Files? Thanks, Tom ...

VS2008 Setup conditional assignment of TARGETDIR

I know this has probably been asked a million times but I don't see a clear answer. I've got a setup project under VS2008 where I want to check the registry to see if a particular app is installed and get its installation directory. Ok fine, I do that with a Launch Conditions and assign it to my property: BlahInstallDir Now in the Appl...

Remove the pdb files when using Publish in visual studio 2008

Is there a way to have the publish command on a web application not push the pdb files? perhaps using an msbuild post build script. Thanks ...

generic.xaml not being re-packaged when modified.

What I have installed... Windows Vista Ultimate Service Pack 1 Visual Studio 2008 Service Pack 1 .Net Framework 3.5 Service Pack 1 Silverlight 3.0 My First Problem... I modify themes\generic.xaml and save the file and run the project and the changes I just made in themes\generic.xaml are not inside the assembly. I have used reflecto...

Visual Studio: Relative Assembly References Paths

When adding a reference to an assembly located within the solution directory, is there any way to add it relatively, so that when checked in and out of a repository it is referenced in projects correctly? ...