visual-studio

Execute SQL Script within Solution Explorer in VS 2008 Professional

Does anybody know how I can execute a .sql file from within solution explorer in VS 2008 Professional? I know you can do this in VS 2005 but cannot find this feature in VS 2008 professional ...

Unable to create a new MVC project in VS 2010 Beta 2 :( What the?

I'm trying to make a new ASP.NET MVC2 web site project, in Visual Studio 2010 Beta 2. When I try, there is no ASP.NET MVC2 Web Application option. :( Check this out... Hmm :( I tried reinstalling B2 (option I chose -> REPAIR). And it's still not there (refer to that screenshot above). Is there a way for me to manually add/registe...

Error # 0x89731706 while trying to deploy an application on a Windows CE devince in VB.NET

I have an application that I created a while ago for some unknown portable device (by portable I mean pocket pc and such). I finally got the device I needed, which is a MC3000 from Motorola, which runs on Windows CE5 instead of Windows Mobile, which I initially developed for. When I try to deploy the solution, I get 0x89731706 from the "...

Windows Performance Analysis Tool usage as a profiler

I have an application written in c++ using visual studio 2005. The application has certain performance problems. I would like to explore where. I need to drill down in which classes/methods/lines the application spends most of the time. Can this be done with the WPA? If yes, can you, please give me a pointer to documentation? ...

Where is my T-SQL Editor toolbar in VS 2008 Professional?

I cannot find the "T-SQL Editor" in vs 2008 professional. Is this not available in this version? ...

Start Action in Visual Studio

I am developing a ClassLibrary-Project in Visual Studio 2008. I want something to check. I have file 'index.html' in root of my project. I need set StartAction to open this file with some browser. I found StartAction in "Project Properties->Debug->Start Action". I can choose "Start external program" or "Start browser with URL", but they ...

Visual Studio Package - How can I get hold of the information in the locals window?

I have a VSPackage that I would like to get information similar to that shown in the locals window when in debug mode (the values of variables for the current context). I have been experimenting with the DTE.Debugger.CurrentStackFrame instance which looked interesting because it exposed Argument and Local collections of expressions. How...

Writing a Visual Studio extension for a custom designer.

So, I've got something I want to try out. The idea is to have a visual designer that works as a Visual Studio Extension, I want to be able to drag out event handlers and wire up behaviors, anyone who's ever played with the warcraft III script editor will have a pretty good idea what I'm wanting to do. Is this kind of thing readily hand...

Automatically generate a DLL .DEF file in Visual Studio?

Is there any way to automatically generate the DEF file for a DLL in Visual Studio? I've always just manually created them before, but there's gotta be an easier way. ...

Is it possible to obfuscate a clickonce application created on Visual Studio 2008?

Hello I've created a WPF application and obfuscated the main .exe with an external tool. Now I'm having trouble to publish it as a clickonce application because Visual Studio somehow is recompiling again the main executable. I deactivated the build checkboxes under Solution-> Configuration manager but it didn't work: the executable ke...

Can you create a link to open a User Control in a VB.Net form to use at Design time?

I've got a VB.Net form application that dynamically loads user controls based on which navigation link the user clicks on. I'd like to make it easier to use at Design time by putting a link of some sort to open the User Control at design time. The link would go onto the form in the space where the User Control will be going. This just...

Statically linked application - invalid or corrupt dll

I have an application that uses the winInet classes - #include <afxinet.h> and the wininet.dll I would like to statically link the WinInet function calls in my application as well as the dll, so I followed these steps. I then copied the wininet.dll into my project directory, as I read here. Upon building I get the following error -...

What's the easiest way of making several web requests in a row ?

I have a given list of URL's, and i make an HTTP web request object, and try to connect with it, i have an 'array' of url's, and i try to connect with each one. the objective is seeing which ones are out. It already works, but one request only starts as soon as the last one ends, so it's quite a slow working, about two requests per seco...

LoadString, static library and executables

My project is set up so all the framework code and modules are compiled to a static .lib (let's call it framework.lib), and many test projects use framework.lib and compile to executable files. For error handling, I'm trying to put the resource strings in framework.rc (part of the framework.lib project) and load the strings in the exe...

Convert Visual Studio 2003 forms to Visual Studio 2005/2008 forms using partial classes and Designer files

After migrating my Visual Studio 2003 projects to VS2005 (or VS2008) my forms would still be inside a single file. New forms on VS2005 and VS2008 are created using partial classes where all code generated by the editor is kept in the Designer.cs file. Since the VS2005 form creates is a much better way of dealing with forms, I would lik...

Keep visual studio from deleting everything from bin/ on rebuild?

Hi, I have a web application project. I have DLLs that I reference in the project stored in my bin/ folder. Well, whenever I do a rebuild or clean from Visual Studio, it will delete everything in that folder. How do I prevent this from happening? ...

Creating Reports using VS 2008

How do I create a report (RDL file) using VS 2008. I created one and it created a rdlc file which I cannot publish it to reporting server. I do not want to convert rdlc file to a rdl file. ...

Swap attributes in tags using Visual Studio 2008 RegEx

How to swap attributes ID and runat in all tags in my Visual Studio 2008 solution? Was <asp:Label ID="Label1" runat="server" /> became <asp:Label runat="server" ID="Label1" /> ...

Visual Studio File Groupings

In Visual Studio 3 files are typically grouped together: filename.aspx filename.aspx.cs filename.aspx.designer.cs Is there a way to add another file that grouping so that it can be collapsed and out of view? filename.aspx filename.aspx.cs filename.aspx.designer.cs customfile.cs Thanks ...

Visual Studio resource editor: there can only be one string table?

I created a string table in my .rc file containing my English strings - now I need to add another string table for a different language. If I try to do: Add Resource... -> String Table -> New I get the error: "there cannot be more than one instance of this type". I know I can open up the .rc file in notepad and add language in th...