visual-studio-2010

Visual studio 2010 WPF

Hello.. I can add the Chart control located in Data group of toolbox if i create a windows form application..but if i create a wpf application i cant! it is disabled.. what can i do? ...

Variant * to string throws unknown exception.

I am using this code to sink events in a IWebBrowser2 webbrowser on c++: STDMETHODIMP AdviseSink::Invoke(DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pDispParams, ...

Visual Studio 2010 automated Database deployment

In Visual Studio 2010 there is a nice feature of the database project that allows you to deploy to a database as well as set up various environments based on your configuration (Build deploy etc) I Would like to integrate this into our automated build environment. Firstly by having the deploy script run after a successful build on my l...

Why does packaging my Sharepoint 2010 project break my references?

Hello everyone, I'm having a very frustrating issue where my SP2010 project in VS2010 where everything seems to be perfectly normal when I build/rebuild the solution, but when I go to "Package" the SP2010 project, though it builds and deploys successfully, one of the dependent assemblies loses one of its references to a different projec...

Visual Studio Installer Project: RemovePreviousVersions does not seem to work

I'm trying to build a Visual Studio Installer Project that is possible to upgrade. I've followed all of the recommendations in MS's documentation I can find: I start versioning the installer at 1.0.0 and increment it by major version (2.0.0, 3.0.0, etc). I change the Product Code each time I change the installer version. I leave the Up...

Copying a BSTR into a char[1024]?

I am working on a web browser with c++ using IWebBrowser2. Declared on the top, outside any scope, I have this: static char buf[1024]; In the documentcomplete event, I set the BSTR with: CComBSTR bstrHTMLText; X->get_outerHTML(&bstrHTMLText); What I want to do is to copy bstrHTMLText value into buf (if bstrHTMLText length is > 1024...

Creating a Custom Silverlight Designer in WPF

I need to create a designer for Silverlight in WPF and I’m thinking of a few options Use a WebBrowser control, display the content there and communicate Silverlight using the JavaScript Bridge. Not sure if this will be enough for the scenarios I need to support (see below). This is what KaXaml is doing. SilverlightSpy uses a a more so...

.NET including class library database (and other resources) with windows app deployment

I have a class library that attaches itself a tiny SQL Server database that resides in its Data Directory. When i'm using this class library with another windows application i see that once i compile my code, the database files get copied to the bin folder of my windows app project. However when i publish the windows app,install, and run...

way to excluding static folders like Images in publish website feature in Visual Studio 2010

Hi In my website when deploying production most of the time I only need to deploy bin folder and just marker files if new pages added.Since my website contains gigabytes of images folder and static stuff not updates frequently, it takes ages to complete a one publish cycle in visual studio website publish feature is there workaround to...

How to customize the UI display of a list item?

I want to add a prefix and surfix gradient panel to decorate the items in a list. I'm new to custom control and need a started point to do this. Please show me how to do it. ...

Error while trying to create a new SQL Server 2008 database project

I receive the following error: Could not load file or assembly 'Microsoft.SqlServer.Management.SqlParser, Version=10.0.0.0 ....etc... The system cannot find the file specified. Reading the following link I made a repair to SQL Server Management Objects (SMO) Class Library but no success there. Any help would be apreciated. ...

The type or namespace 'MyNamespace' does not exist etc...

I have the usual type or namespace name does not exist error, except that I have referenced the assembly, the using statement does not show as incorrect and the classes I am referencing are public. In fact, I reference and using the same assembly in a different solution to do the same thing and it works fine. This is VS2010 by the way. ...

vs2010 Mixed mode assemblies in windows installer custom actions

I have a Windows installer project which includes a custom action. This custom action uses SMO to configure a databse. The installer project is .Net 4. When executing the custom action, I get the following error: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without...

Getting Visual Studio 2010 to retain VSS password

I use Visual Studio 2010 with Visual SourceSafe 2005 for source control. Each developer has their own username/password for VSS access. I know how to configure Visual Studio to remember the login name but I cannot seem to find a way of remembering the password. Currently each time I open a project under source control I have to enter my ...

where is the visual studio user guide

Does Visual Studio have a user guide, or any such document that provides the complete list of functionality of the application. Just to be clear, any document that details all of the functionality, eg like Resharpers online help at http://www.jetbrains.com/resharper/webhelp/ I have googled the above with not much success. (i have also ...

Best way to organize data files for deployment in a project?

I have a project that comes along with some custom xml files. These files are currently simply stored in a "Data" folder and part of the project so I can use Visual Studio to edit those files. When building, I want all of those files to be copied over to a specific data directory. But I couldn't find a way to achieve this in a way that ...

Cannot load dbghelp.dll when debugging unit test

I am unable to start my unit tests in debug mode in Visual Studio 2010 running on a Windows 7 x64 machine. If I run the unit tests in debug mode I get a BadImageFormatException: Could not load file or assembly 'dbghelp.dll' or one of its dependencies. The module was expected to contain an assembly manifest. at System.Reflection.Assembl...

How do I get the generated proxy class of a WCF service to implement INotifyPropertyChanged

Is it possible to have the proxy classes that are generated when setting a service reference implement INotifyPropertyChanged? In this case it's a silverlight app referencing a WCF service? Update: The SlSvcUtil.exe commandline utility is part of the silverlight SDK installed {Program Files}\Microsoft SDKs\Silverlight\v4.0\Tools will ...

Using doxygen with Visual Studio 2010

Hi, I have difficulties using efficiently doxygen with Visual Studio 2010 and C++. It seems like there is no other function for commenting than "un/comment lines". For example generating comment stubs, adding /// after a new line. Also, I wonder what is needed to display those Comments within the IntelliSense feature in VS2010? ...

Is it possible to close the left bottom panel through keyboard shortcut in Visual Studio IDE?

Many times I want to close the left bottom panel which includes build information, etc. by keyboard shortcut in Visual Studio IDE, is it possible? Or can I customize Visual Studio to support this? ...