visual-studio-2008

How to make auto hide in Visual Studio faster?

For example, if I set the Solution Explorer to auto hide, it takes a second for it to animate away. I would prefer it to be instant. Is this possible in Visual Studio 2008? ...

VS2008: MSI Deployment Project - How do I deploy a minor update leaving ProductCode unchanged?

The following link refers to making a major change to the application and changing the ProductCode. http://stackoverflow.com/questions/3024753/installing-a-new-version-of-a-deployment-project-over-old-version Is it possible to easily (with Visual Studio) make a small change to an application and then without changing the ProductCode gui...

How can I programmatically launch visual studio and send it to a specific file / line?

I have a nice tidy way of capturing unhandled exceptions which I display to my users and (optionally) get emailed to myself. They generally look something like this: Uncaught exception encountered in MyApp (Version 1.1.0)! Exception: Object reference not set to an instance of an object. Exception type: System.NullReferenceExcepti...

How to use var more than once in linq?

var ID, x,y switch(ItemTypeNo) { case ItemType.A : ID = from s in cntx.Tablo1 break; case ItemType.B : ID = from s in cntx.Tablo2 break; case ItemType.C : ID = from s in cntx.Tablo3 break; } ...

Idiots Guide to compiling curl with ssh in Windows

Hello, I am not a c developer, but I have been asked to to compile curl with ssh. I have downloaded the source for curl, libssh2 and openssl. I have managed to compile curl within VS2008, but I have no idea on to add the libssh2 and openssl. Any help would be grateful. Thanks ...

How can i use select to string in linq?

How cani use below codes string id = ( from in .....) how? using (StockProcedureDataContext stock = new StockProcedureDataContext()) { id = (from m in stock.StockTools from ss in stock.RefStockStatus where (m.statusid == 3 || m.statusid == 5) How can i do above...

VB.Net - Version numbering in VBPROJ file

Following on from my last question, are the AssemblyMajorVersion, AssemblyMinorVersion, AssemblyRevisionNumber and GenerateRevisionNumber properties required in .vbproj files? All of our components have these entries in the .vbproj files but they are completely out of sync with the AssemblyVersion and AssemblyFileVersion entries in the ...

Introduction to unit testing for C#

I'm looking for a good introduction/tutorial for unit testing C#. Most tutorials I've come across so far have either been too basic to be useful or too complex for someone new to unit testing. (Using Visual Studio 2008 Professional for Windows applications) ...

How can i use unioan and nested from linq?

How can i convert to sql to linq . i don't understand nested select query. i need linq codes. Please help me:(((( SELECT @id=id FROM (SELECT id,workorder AS workorderno ,CAST(jobseqno AS int) AS jobseqno FROM dbo.CTask UNION ALL SELECT id,workorderno,cardno AS jobseqno FROM dbo.NonRoutineCard UNION ALL SELECT i...

How to avoid HDD thrashing

I am developing a large program which uses a lot of memory. The program is quite experimental and I add and remove big chunks of code all the time. Sometimes I will add a routine that is rather too memory hungry and the HDD drive will start thrashing and the program (and the whole system) will slow to a snails pace. It can easily take 5 ...

Easiest way to re-use a function without instantiation a new class

Hi all. I currently have a function that looks like this: public void AnimateLayoutTransform(object ControlToAnimate) { //Does some stuff } I use this function in a lot of different projects, so I want it to be very reusable. So for now I have it in a .cs file, enclosed in a namespace and a class: namespace LayoutTransformAnimation...

Mouse Events for DirectX.AudioVideoPlayback

When I create an DirectX.AudioVideoPlayback object and give it a control (say a panel) as an owner, it seems to lose some events - in my case, MouseClick and MouseDoubleClick. MouseDown, MouseUp and MouseMove all continue to function, and I can rework the missing events into those three, but it's not ideal. Does anybody know a way arou...

How to replace multiple lines in Visual Studio 2008

I need to do a find and replace, where I need to replace 2 lines at time. Does anyone know how to do this in the VS2008 IDE? To clarify, i want to replace 2 lines with 1 line. Many thanks ...

error MSB3216 when registering assembly

Here are the error details: In the Error List: Error 1 Cannot register assembly "C:\Users\cboardman\Documents\Visual Studio 2008\Projects\ExcelAddIn1\ExcelAddIn1\bin\Debug\ExcelAddIn1.dll" - access denied. Please make sure you're running the application as administrator. Access to the registry key 'HKEY_CLASSES_ROOT\ExcelAddIn1......

Silverlight debugging issue

Hello everyone, I am previously using VSTS 2008 + C# + .Net 3.5 + Silverlight 3.0 and my application can be debugged correctly in VSTS 2008 (pressing F5 and then start debugging, my application is a traditional Silverlight application, i.e. an xap file embedded in html page). I find when I upgrade to Silverlight 4.0 player, when debugg...

Visual Studio Addin "Exclude From Build" Property

I am currently trying to create an addin for Visual Studio 2008 that will list all files which are not excluded from the current build configuration. I currently have test C++ console application that has 10 files, 2 of which are "Excluded From Build". This is a property that will allow a specific file to be excluded from a specific co...

How to get VBO working

I tried to use this tutorial http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=45 I load it in my visual studio 2008, compile it, and it says missing file: "GLES/glplatform.h" so i google the file... then it whines missing file: "KHR/khrplatform.h", so i google that too... then it whines everything possible, "GLDouble undeclared id...

Visual Studio 2008 - Can't edit events in WPF

I just got a new PC with Windows 7. While editing a WPF window, when I right-click on a control and select Properties, I get the familiar property window docked in the lower-right coner. For some reason, I do not see the lightning bolt button to toggle over to the events. Also, when I double-click on a control, nothing happens. Has a...

Formatting ASPX files in VS2008 and editor line width

This isn't a programming question per say, but very programming related, so I figured I'd ask here instead of superuser.com We invested in some nice widescreen monitors at work so we all have nice 1920x1200 resolution and a wide visual studio window when it is maximized. The problem is when we hit ctrl-k-d to autoformat the aspx code, i...

Order of install/uninstall of VS 2008 and SQL Server 2008

I have VS 2008 Trial edition, SDK, and SQL Server 2008 currently. But I need to uninstall VS 2008 Trial and replace it with VS 2008 Professional. If I uninstall VS 2008 while keeping SQL Server 2008, then if I install VS 2008 Pro will SQL Server databases still be accessible from the new VS 2008 Pro? And do I install the SDK after VS ...