visual-studio-2008

File upload only pictures

I am using the fileupload control in asp.net. I want the browser to only show pictures. I am currently using validation to ensure they only select images but how can I make the browser only search for images? ...

Is there a way for a VS2008 Web App Project to work on Windows 2008?

I have some web application projects in my solution that are set with the web tab in the project properties to use the local IIS server and create the web there. This works fine for windows XP, windows 2003. I want to open the project on Windows 2008 but the project gets the following popup when loading each of the projects with this t...

Possible to change Visual Web Dev without stop/start recompiling whilst debugging?

Hi -- This may be a stupid question, but I'll feel stupider if I don't ask and find out in 12 months that it was possible (this happened when I realized I could do what I'm requesting below with .aspx files). Is it possible to change my project files (c# classes, which predominate in an asp.net mvc environment) without recompiling whil...

Migrating from Visual C++ 6 to Visual C++ 2008 express

Hi, I'm tring to migrate my code from VCpp 6 to VCpp 2008 express but when I build the solution I receive this error message: icl: warning: problem with Microsoft compilation of 'c:\Desenvolvimento\DFF\Base\\version.cpp' 1>C:\Arquivos de programas\Microsoft Visual Studio 9.0\VC\include\string.h(69): error: expected a ";" 1> __DEFINE...

VS 2008 Debugging: CrystalReports Cache

I'm debugging issues from some CrystalReports documents through Visual Studio '08 (please, kill me now). In addition to the CrystalReports .NET libraries containing some of the worst interfaces I've ever seen, the web viewer for CrystalReports seems to behave strangely while debugging. Unlike regular .aspx pages, the CrystalReports docum...

Re-order Items in a ListBox - Windows Forms - (Java programmer learning C#)

There is the first time I'm going to do a particular control in C#. The control is a ListBox of items that will have an up arrow and a down arrow on the side. When you select an item in the ListBox, you can use the up and down arrow arrows to reposition that item in the ListBox. My two questions are: (1) Is there a prebuilt control for...

How to create the vsmdi/testrunconfig file when importing a Visual Studio test project?

When I add an existing test project, my solution lacks the vsdmi and the testrunconfig files. How to create it? ...

How do I pass a parameter by reference to managed code in C#?

I'm using a DLL with the following function in C# Visual Studio 2008: [DllImport("slpapi62", EntryPoint = "_SlpGetPrinterName@12")] public static extern int SlpGetPrinterName(int nIndex, string strPrinterName, int nMaxChars); Calling this function, strPrinterName is suppose to return a string. string name = ""; SlpGetPrinterName(0, n...

How can I remove a keyboard shortcut in Visual Studio 2008?

Specifically, I am always hitting Ctrl-A instead of Ctrl-S which is really annoying because it loses your place in the code. I very rarely actually want to select all of a file in Visual Studio, so I'd like to remove the keyboard shortcut so that Ctrl-A does nothing. Any way to do this? ...

Reference JS file in Other JS File and Intellisense

Hi, I've been learning JQuery and I am writing my custom jquery codes in Custom.js file. Actually what I am trying to do is, activate intellisense for Jquery in visual studio but it's not working and I want intellisense to also work in custom.js file where actually I'm writing my custom logic and codes. I thought it could be solved by ...

Troubleshooting the built-in Visual Studio 2008 WebDev.WebServer.EXE

How do I begin to troubleshoot Visual Studio 2008's WebDev.WebServer.EXE? I'm trying to run the default ASP.NET MVC project. And I keep getting this message from Firefox: Unable to connect Firefox can't establish a connection to the server at 127.0.0.1:52589. * The site could be temporarily unavailable or too busy. Try again in a...

Visual Studio Auto-Format Broken

I'm running Visual Studio 2008 sp1 on Windows 7 Build 7100 32bit. I've never had this problem before, even on different installs of Windows 7 RC. when I finish a statement with a ';' or '}' or something, normally VS will auto format that line or block of code. It hasn't been for me. I checked Tools->Options->Text Editor->C#->Formattin...

"Dcom Server Process Launcher" starts IIS Admin with VS 2008 installed, XP SP2

Wondering why "DCOM Server Process Luancher" starts up IIS Admin even when it's set to manual. Is this a factor of my Visual Studio 2008, SQL Server 2005, or something more nefarious involved? ...

Folder created by MSM not being removed on uninstall.

Hi I have an .MSI file created using VS2008. This .MSI is composed of a collection of merge modules, each of which basically installs one component of our application to its own folder. When I try and uninstall the .MSI one of the subfolders created by a particular merge module is not removed, even if the application has not been run. ...

In SSMS, when editing a stored proc, how to get the line and error numbers to match?

Terribly worded question above (trying to be short). Lets try that again: In Microsoft SQL Server Management Studio, when you are editing an SP and execute the sp in the same window, errors show up at the bottom of the screen you can double click to highlight the code causing the error. However, this never lines up, usually being anywh...

Visual studio asp.net markup formatting

Our coding standards have us putting each attribute within a tag on a separate line. However, when I have VS (2008) format the markup is lumps all the attributes together. Is there a way to change this behavior?? Thanks ...

How to open a document in a new window in Visual Studio 2008?

Sometimes I would like to undock a source file and slide it over to another monitor while editing another file. How do you do this in Visual Studio 2008? ...

Referencing a web service project from unit testing project: project not in list

Problem: Trying to reference a .NET 2.0 web service project from my VS unit testing project. Right click on the References folder in the unit test project -> Add Reference. The .NET 2.0 web service is NOT listed in the listbox of projects available to reference. I know this usecase is possible; I have previously successfully reference...

c# excel 2007 print preview ribbon

hi, is it possible from c# to add some groups, buttons,... to excel-2007's print preview ribbon... why? i wanted to put some images on that ribbon so that user by selecting the image will be able to put it on a sheet (where ever on that sheet by dragging it) and print it with that sheet... many thanks! ...

How to add a reference to Photoshop CS4 COM in C#

Hello! I'm having a little problem with Photoshop CS4 automation. When I want to add a reference to the COM API in my Visual Studio 2008 project, the Adobe Photoshop Object Library doesn't show up in the "Add References" panel under the "COM" tab. However, the Illustrator CS4 Type library show up just fine. Photoshop itself run perfectl...