visual-studio

Shortcut key for moving between source and design view in ASP.net Pages

I know that F7/Shift F7 will switch between Code behind and ASPX pages, but what's the shortcut to switch between source and design view in Visual studio for asp.net Pages? ...

How can I access the controls in a Windows Forms Designer window through a VS macro?

I'm just getting started on this, so bear with me. I was looking into writing some macros to provide keyboard shortcuts in the Windows Forms Designer in Visual Studio. In particular I was hoping to create shortcuts for manipulating certain properties of the selected control in the designer. Obviously to do this I need to somehow access t...

Is it possible to control Visual Studio exception handling from the debugged code itself?

Dear ladies and sirs. I am wondering if it is possible to control the Visual Studio exception handling options from the code itself. For instance, I would like to turn off stopping on FCE for a certain piece of code, that generates many FCE, however, I would like it to be active for all the other code. Is it possible to do it from code?...

Figuring out what makes a C++ class abstract in VS2008

I'm using VS2008 to build a plain old C++ program (not C++/CLI). I have an abstract base class and a non-abstract derived class, and building this: Base* obj; obj = new Derived(); fails with the error "'Derived': cannot instantiate abstract class". (It may be worth noting, however, that if I hover over Base with the cursor, VS will po...

Custom form designer loader in Visual Studio hosted Forms Designer?

The ability to host your own Windows Forms designer is well documented now, and is a great technique that we will be shipping with our application. However, we'd like to gain some control over editing a form from Visual Studio itself. We'd like to insert our own DesignerLoader derived class into Visual Studio's form editing mechanisms,...

Is Infragistics.Excel V 10.1(Latest) compatible with Visual studio 2005 and .net clr 2.0?

Is Infragistics.Excel V 10.1(Latest) compatible with Visual studio 2005 and .net clr 2.0? Is there any service pack associated with Infragistics.Excel V 10.1 for fixes associated with excel macro? If so how to get that? Please help :-( ...

Visual Studio - Add a line break in a label via the designer?

I have a label that I want to use to show some text. I want to show a few paragraphs of text. Is there a way via the designer to make a line break in the text? (\n\r just shows \n\r) This is WinForms (actually it is Compact Framework.) ...

Converting Makefile to Visual Studio Terminology Questions (First time using VS)

I am an old Unix guy who is converting a makefile based project over to Microsoft Visual Studio, I got tasked with this because I understand the Makefile which chokes VS's automatic import tools. I am sure there is a better way than what I am doing but we are making things fit into the customer's environment and that is driving my choic...

VS.Net Unit Testing -- possible to have project-scoped test setup?

Within a test file (MyTest.cs) it is possible to do setup and teardown at the class and the individual test level. Do similar hooks exist for the entire project? Entire solution? ...

ASP.Net aspx markup

I am working on some old web forms application. When I changed from design to view source of the aspx page, the aspx markup becomes disarranged. For example, a label is written as follows: <asp:label id="Label20" style="Z-INDEX: 119; LEFT: 16px; POSITION: absolute; TOP: 424px" runat="server" Height="...

Can Visual Studio 6 and 2010 coexist on same machine?

I need to have Visual Studio 6 installed on a machine that already has Visual Studio 2010 Professional installed. Can this be done without overwriting libraries, registry settings, etc., or should I go the longer route and set up a VM with Visual Studio 6 installed there? Can Visual Studio 2010 co-exist with Visual Studio 6? ...

Compute data between record of SQL database within Visual Studio

I am attempting to calculate the miles per gallon for logged fuel full-ups. My table consists of the flowing: FillUp(CarID, Date, ODReading, Gallons, StopGo, Highway, FillupID, MPG) I want to subtract the ODReading from the previous record and divide gallons by this computed value. How do I work between records to achieve this withi...

Spy++ like program for viewing control values

I'd like to view and export the values of a combobox. What program can I use to allow me to get the values in a control inside another application? ...

Can I add a command to make ReSharper repeat last test run to the right click context menu in visual studio?

I'd like to add a context menu item to allow me to repeat resharper's last test run, similar to the one that test driven.net adds. Is this possible? ...

How to create a solution template in VS2010?

Can anyone point me in the right direction on how to create a Solution Template in VS2010? I need to create a solution with several projects already created.... ...

How to package .Net framework in Visual Studio project?

I have created a C#/.Net application using visual studio. I have also created an installer project that puts out two files: An MSI file Setup.exe file In my installer project properties I have setup .Net 3.5 as a prerequisite. What I would like my installer to do as as follows: Put out a single file (MSI/exe/whatever) that also i...

adding a dll to a VS 2008 Win32 application

Hi, I have created a project VC++ in VS 2008. I want to call a certain function in an external dll. How can I add the reference/resource [I am a java guy please forgive if I am using the wrong terms here] to my project so that I can call the functions in the dll. I have gone through several forums and yet have not found a clear solutio...

how can I make a pure assembly project in visual studio?

How can I make a masm project in visual studio? I remember doing this in class a while back, but i've since forgotten, and google is only getting me inline assembly. Thanks. ...

Catching exception in Main() method

Consider the following simple application: a windows form created by a "new C# windows application" sequence in VS that was modified in a following way: public static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); try { Application.Run(new Form1()); } ...

Is anyone aware of an Object Manager Enterprise plugin for Visual Studio 2010?

I'm using DB4O on a new project I'm playing with and it would help me no end if I was able to use the Object Manager Enterprise utility. I understand it's only available as a VS plugin, so does anyone know whether such a plugin is / will be available for Visual Studio 2010, or is there another way to get the utility? ...