visual-studio-2010

Can we parameterize check box or radio button in Microsoft Test Manager 2010?

Hi, Currently I am trying to record and parameterize for some web interfaces. I don’t have any issue to parameterize text field but is it possible to parameterize field such as: checkbox or radio button? If yes, could you provide the steps or any reference link or reference document? Best regards, Jenn ...

How to unit test GUI elements?

I would like to create a custom user control, which extends the textbox in WPF, but only accepts numeric values. When the user types in a non numerical value, the textbox should not respond to the input. How can I simulate userinput to a textbox, to be able to create a unit test for this behaviour? I am using the built in test framewor...

How to turn off showing assembly codes when debug?

I accidentially turn on this mode and want to return to previous setting. How can I do this? ...

C# DataGrid automatically write values to DB

I have a datagrid view which shows table data from a database Environment: - C# 4.0 - SQL Server 2005 - Visual studio 2010 What i want is: On a row to row basis automatically save changes. So when I edit the first row and then leave the row. It should save the changes to the database. I've used this code: In the From1 Load: dat...

Find missing resources at build time

I'm working on a brownfield application which has a lot of references in the markup with meta:resourcekey="someresource" style syntax. Also calls are made in code to GetLocalResourceObject("ResultsPageHeaderText"). Both of which are is fine, but I've noticed a number of places where the resource does not exist. Short of manually inspecti...

SharePoint script fails when run as a Visual Studio post-deployment command

I have written a script that inserts some test data into a document library. I intend to use it as a post-deployment step in Visual Studio 2010, so that the library is not empty after a retract & deploy. The relevant portions of the script are: Install.ps1: $scriptDirectory = Split-Path -Path $script:MyInvocation.MyCommand.Path -Paren...

IE ierror with parsing html

i get this error HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917) when try to run my project in visual studio 2010. but ONLY when run in virtual mashine! otherwise same source code doesn't yield same error NOTE: IE 8 Advance settings are same for both configurations! help...

Expression Encoder 4 assembly within ASP.NET, IIS7.5 and VS2010

Hello Stack Overflow Community, We have a problem whilst trying to implement an expression encoder assembly into our project and running it through IIS 7.5. We are using VS2010 and .NET4. We have ensured the project is targetting x86 cpu type and when running our application within the VS development server everything is fine. When we...

fxcop CA2213 error in vs2010

Hi. I have the following code: A disposable class that contains two disposable members. One of them is being initialized using new() method, and the other using static factory method. I Also have static code analisys rules, with CA2213 as error. public class DisposableClass : IDisposable { private WebClient m_DisposableMember1; ...

How do I find out the actual SQL that this statement generates?

I an using VS2010, .NET4 and EF4. I would like to see the actual SQL that is generated when this is run. Also, what is this the best way to write this statement? Here is my code: var cklContactItems = from a in dbTestCenterViews.appvuChecklistExports where a.MarketChecklistID == MCLID ...

Getting XAML designer to show design in VS2010

I am starting to learn WPF and I grabbed the Family.Show project as a real-world example to help me learn. It's got a pretty good UI, and some cool animations in the main panel for the family tree -- I'd love to see how they did it. So I downloaded the source code (http://familyshow.codeplex.com/releases/view/23637#DownloadId=59428), o...

VS2010 DB Project - moving stored proc to another schema

I've got a database under source control using a VS2010 database project. I'm trying to move some stored procs from the [dbo] schema to another schema. When I change the schema name in the project (moved in folder structure plus edited the CREATE to indicate the new schema) and deploy, I end up with a CREATE for the proc in the new sch...

How to disable VS2010 script debugging

How does one disable script debugging with Visual Studio 2010? For VS2008 I used: reg add HKLM\SOFTWARE\Microsoft\VisualStudio\9.0\AD7Metrics\Engine{F200A7E7-DEA5-11D0-B854-00A0244A1DE2} /v ProgramProvider /d {4FF9DEF4-8922-4D02-9379-3FFA64D1D639} /f Thanks! EDIT Used Shoban's answer. You have to have the Silverlight Developer ...

Issue with Visual Studio loading a project in a folder that contains a .

Hello, I'm trying to open a project that has a folder called MyApp.ServiceHost and inside has a project called ServiceHost.csproj. The folder layout is sorta like this: SLN -> Services - -> MyApp.ServiceHost - - -> ServiceHost.csproj -> MyApp.OtherStuff Everytime I try to open the solution I get ".ServiceHost" is not a support proj...

Visual Studio 2010 designer error

Hi, I'm having a problem with some custom forms I developed. This form worked perfectly with VS2008, but is causing an error with VS2010. Going back to VS2008 is a worst case scenario option for various reasons. Anyway the problem - When I try to view a form of type FormWithError in design mode I get the standard "To prevent possible...

Table LayoutPanel Problem - Urgent

Hi, I am creating a TableLayout in which the rows and columns are set by the user at runtime. There initial controls on the form are rowsTextBox, columnsTextBox, button1 and tableLayoutPanel1. I modified some of the code from my initial program. Here's the old code. private void button1_Click(object sender, EventArgs e) { tableLay...

Why do my tests fail with System.Security.VerificationException?

I'm in the process of migrating one of my projects from VS2008 to VS2010. Now that I converted all of my projects in the solution to .NET 4.0 (Client Profile) when I run the test harness, almost all tests fail with the following exception: System.Security.VerificationException: Operation could destabilize the runtime. I've been...

Media Center Style app

Hi, I was wondering how I can make a GUI that looks like Media Center, so like this: I don't know if it can be done with simple c# .net or if I have to use WPF or something. (The app needs to be written in C# style) I found a couple of tutorials for WPF but nothing I can use to create such an nice looking GUI. Hope somebody knows so...

How to auto-update the Modified property on a Entity in Entity Framework 4 when saving?

Im using EF4 in VS2010, POCO's and the model-first approach. My entity has the following properties: Id:Guid, Name:String, Created:DateTime, Modified:DateTime, Revision:Int32. I create my entity, set the name and save it to the database using the EF4-context. This should set Id to a new Guid (works with Identity-SGP), Created set to no...

vs2010 compiled MFC app running in win2k

The company I work for has a large native MFC based application. We're currently using vs2008, but for the next version we're hoping to move to vs2010, mainly for the new C++0x features. Unfortunately we've a very small minority of Citrix customers who are sticking with Win2k server due to licence costs. I discovered today that there i...