visual-studio

Crystal Reports / VS'08 - Design, Elements floating to top

Hey, I'm trying to edit some .RPT files via VS08/Crystal Reports. Problem is, if i create new elements or delete/move existing elements, the text below (within a new section) floats up to (or above) the element i created. How do i create elements with an absolute "top-value"? Other than that, if there are there any design-essentials-t...

Disabling Visual Studio Development Server - Any way to do this per project?

When debugging my website project I usually go to start options in the web project's properties and select 'Don't open a page' and 'Use custom server' with a url that's in my host file pointing to my local IIS. Even when I do this though visual studio still spawns it's own Development Server instance every time I hit f5. Is there any w...

Is there a Visual Studio equivalent of Vim scrolloff or Emacs scroll-margin ?

Is there a standard option built into Visual Studio to act like the Vim scrolloff, or Emacs scroll-margin option. The aim is for Visual Studio to always show at least "x" many lines above and below the current point. ...

Is there an eclipse equivalent to the Visual Studio "Command Window"?

I've just gotten really hooked on the Visual Studio Command Window, being able to type a lot of command rather than reaching for the mouse. Is there an equivalent in eclipse? Or is there another convenient way to go mouse-less? ...

Autodesk Design Review API and Visual Basic

I am trying to embed an ActicveX control into a Windows form. The control is an Autodesk DWF viewer. I have it in the form and added references, but when I run I get these errors in the Immedite window. Everything seems to work like it should but I want to what these errors mean and how to fix them. System.Windows.Data Error: 39 : Bi...

Where should I attach solution or project events in my Visual Studio add-in?

Can anyone suggest the best place to add solution or project events, such as ProjectAdded, to a Visual Studio add-in? If I do this when the add-in connects then there's no solution loaded, so how can I tell when a solution has been loaded? For example, if I write an event to handle project items being added, where should I attach this?...

this.Type reserved ? Should be reported

I discovered yesterday that I can't have a Class that uses a field named "Type" this is probably reserved. Although the field may be reserved you still can't set anyObject.Type if it doesn't have a Type field defined as a public string. Ignoring any getters and setters and jumping directly to changing YourObject to "whatever" string. T...

get attachments via webservice

Hey, my problem: I want to get the attachment of my ListItem. The list exist on another server. I get the list via the webservice lists where I have to send credential with. I am able to get the url of the attachment, but I have no permission to view the url... I want to get the attachment, to show them on my webpart. How can I solve t...

Visual Studio 2008 - Custom XML Designer

Hi Folks! I'm searching for a way to implement a designer/editor like the aspx-Designer in VS2008. We use a custom XML-Format and want to edit it graphically. We already have a Designer and want to integrate in VS. Is there a good tutorial? I want to adapt to features like "switch to code" (and those tabs at bottom of the window). So ...

Visual Studio: Collecting the members of an interface in the same region

I find it useful to right-click on an interface, and click "Implement Interface." This will create any missing interface members in a new region. However, if your interface has recently changed (ie some of the members already exist, some do not) the members will not be placed together in the same region. Is there an easy way to collect ...

HTML line break formatting in VS is not working?

I've adjusted my VS 2010 HTML formatting settings to do line breaks "Before opening, within, and after closing" for many tags such as the <a> and <li> tags. But this only renders as the following when formatting the document: <ul> <li> <a href="#"> Item 0</a></li> <li> <a href="#"> Item 1...

Visual Studio and NUnit - automatic running of unit tests on build

I would love to know if there is a way I can get Visual Studio to run unit tests corresponding to a given assembly whenever I build it. Given a solution containing projects structured like this: Assembly1 Assembly1.Tests Assembly2 Assembly2.Tests Is there a way I can get the unit tests in Assembly2.Tests to run whenever Assembly...

Visual Studio custom CSS reference

In Visual Studio 2008 you are able to reference JavaScript files within other JavaScript files to expand syntax-highlighting across multiple files. Can the same be done with CSS? ...

How can i fill Anonymous type in list?

I try to write some codes about Generate list from Anonymous type via below codes : public static List<T> MakeList<T>(T itemOftype) { List<T> newList = new List<T>(); newList.Add(itemOftype); return newList; } But ERROR return me: A primary key field specified via the KeyFieldName property is not found in the underl...

Copying of depended-upon dlls in Visual Studio

In my solution, I have a Windows Service called MuskOx. MuskOx has a project reference to a class library called MuskOx.Errands. MuskOx.Errands has project references to class libraries called Kctc.BusinessLayer and Kctc.NHiberate. When I build MuskOx, its output folder gets Kctc.BusinessLayer.dll but not Kctc.NHibernate.dll. This is...

(Deep) comparison of an object to a reference in unit tests (C#)

Hi all, In a Unit Test (in Visual Studio 2008) I want to compare the content of a large object (a list of custom types, to be precise) with a stored reference of this object. The goal is to make sure, that any later refactorings of the code produces the same object content. Discarded Idea: A first thought was to serialize to XML, and t...

Opening existing project in Visual Studio 2010

All, I have a project that was originally written in vs 2005 or earlier (don't remember bc I didn't write it). I opened it in vs2008 and converted it although it still has the csproj file. sln file states: Microsoft Visual Studio Solution File, Format Version 10.00 Visual Studio 2008 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}"...

Accessing ASP.NET local server from virtual machine

Don't know if maybe this question belongs on serverfault, but I'll try here first. I'm running Visual Studio 2010 on my machine, and I want to test my ASP.NET page in IE6. IE6 is running on a virtual machine using Windows XP Mode. The problem is that I can't access localhost from the virtual machine. I've also tried accessing it via my...

visual studio xap update

Why do I have to rebuild my project everytime to see the new silverlight xap file created in my browser a little more background info: this is the structure of my setup solution |-project1(asp.net website) |- Client Bin |- xap file |- Xml file |-project2(silverlight project) |- Shortcut to Xml file (added as ...

Can the Visual Studio Remote Debugger work on a windows xp home machine?

We're trying to get remote debugging working across domains from a windows 7 machine to a windows xp home machine. The machines are VPN'd together using LogMeIn Hamachi. I've checked over the MSDN guide on getting Remote Debugging set up thoroughly and have gotten past a lot of errors, but I'm constantly running into blocks. I can get...