Questions tagged "visual-studio-2010" (page No.1)

A dictionary may also contain overhead, depending on the actual implementation. A hashtable usually contain some prime number of available nodes to begin with, even though you might only use a couple of the nodes. Judging by your example, "Property", would you be better of with a class approach for the ...

Harddisk advice: Run Visual Studio in Windows 7 in Parallels on external drive

I just bought the latest MacBook Air. I'm running Parallels with Windows 7 and Visual Studio 2010. Since I'm running out of disk space, I want to move the VM to an external drive. Since I will be developing in Visual Studio 2010 within the VM the performance of course needs to ...

How do I organize my project files in Visual Studio in a Setup Project?

I have a set of schemas that I use in a C# program. I've created a Visual Studio Installer "Setup" Project. Whenever I add those files into the project using the project's "File System" I get a massive list of files in the Solution Explorer: ...

How to edit .sln file in TFS 2010?

I need to delete several lines from the solution file (.sln). When changing .csproj files I can use "Unload project". But what is the proper way to edit .sln file in TFS? ...

Pre-compiling ASP.NET solution causes error in integrated mode on IIS7

We have a site that we are trying to move to IIS7 on Windows Server 2008 R2 that was previously hosted on IIS6 on Windows Server 2003. The problem (to me at least) is really strange. If I precompile the site using our website deployment build scripts (which produces COMPILED ...

ASCII.GetBytes in a switch statement error - Unable to cast object type

I have the following C# code- switch (Convert.ToInt32(Encoding.ASCII.GetBytes(grdGrading.Text.Trim()))) grdGrading is a Data grid. I am currently getting this error - Unable to cast object of type 'System.Byte[]' to type 'System.IConvertible'. Any ideas on what is causing that? ...

Hotkey to move to next search result spanning multiple documents

I often do a search using Ctrl-Shift-F to see all the results appear in the Find Results window. (in this case, look in would span the entire solution) Is there a way to navigate each of the results using a hotkey? I know that if you press F3 on the current ...

Escape Left Bracket C# Regex

I have a string in the following format: prm.Add( "blah", "blah" ); I am looking to use regex to extract the first "blah". To do this I am carving the front half off and then the back half. The regex I'm using to get rid of "prm.Add( " is: "prm.Add\([ ...

Relations in Devart Entity Framework

How to create a specific relation in Devart Entity Framework ? i am working with Devart Entity Framework in Visual Studio 2010, i am creating an aplication over a mysql realy ugly desing database. But a can't made any changes on it. So i try to made some improve at model level, ...

Insert custom ribbon tab in office template

I have in Visual Studio 2010 a new Excel Template project and I have added a new ribbon tab that it is merged correctly whit the other office tab. The problem is that I have just few controls showed in the toolbox and even if I try to customize the ribbon ...

Handling default values for models in EF4

I'm wondering what's the best way to handle default values for relationships when making models. (Specifically EF4) For example, my Organization has a default Contact and I was wondering which one was the best approach. I got these two options (or any other anyone suggests if better) Using Relationship: public class Contact { ...

Use an older version of MFC with a newer version of Visual Studio

I am using Visual Studio 2012 (v11) which is using a version of MFC that is not yet widely distributed and is incompatible with Windows XP. I stumbled across this article while searching for a solution and tried it without any success. I figured that it was because there was ...

Cookies stopped persisting for VisualBasic 2010 web app, but 2nd web app with exact same source code works okay

Cookies aren't working for my web app anymore. But a 2nd copy of my web app works okay, so there's something wrong with my first copy. OS: Windows Server 2008 R2 Web app: Visual Studio 2010 -- Visual Basic ...

unusual debugging in vs 2010

I have a simple loop code, and try to debug it. Imagine there is 100 step in my code(a counter cont it). is it possible in VS2010 that for example I trace step 1 and 2 and then ignore the rest until 90,again start debugging from 90 to 100? I know ...

cuda intellisense visual studio 2010 express professional

I installed Visual Studio 2010 Express Edition, and then the CUDA Toolkit 4.2. I got the Intellisense on VS Express for the CUDA files (.cu) by running the file gpucomputing_intellisense.reg in the directory C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.2\extras\visual_studio_integration and it worked properly. Today, I installed also Visual Studio 2010 Professional Edition (without ...

Sql Server Express failed to generate user instance

I am using Visual Studio 2010/c#, and created an application where I am trying to access as a data source a database which I created in SQLSERVERExpress (via management studio). I have several instances from previous installs which I remove - SQL COnfiguration manager just shows 1 instance SQLEXPRESS which got ...

Microsoft UITesting Automation Engine Information

I am using Microsoft.VisualStudio.TestTools.UITesting to hand-code automated tests for a Silverlight web application. I am running into an inconsistent failure problem, and I need to understand what visual studio is doing when it runs a test. Where can I find detailed technical information on the testing framework/engine in Visual Studio? ...

How to reflect text from a text box to a datagrid

How can i write a program that reflects a text that is in a text box to a data grid? Ex: You write something in a textbox (textBoxURL.Text) and it automatically reflects the text to a datagrid (row.URL). Here is a piece of my code: DsVersions.ASSEMBLY2Row row = dsVersions.ASSEMBLY2.NewASSEMBLY2Row(); row.URL = textBoxURL.Text; If any ...

OpenGL bug only present when run without debugging, how is it possible?

I'm having a strange bug when writing a tiny OpenGL application. When I run the application with F5 (w/Debugging) in Visual Studio, it runs well. If I run it with Ctrl + F5 (w/o Debugging), it runs at 0 FPS. In both cases I'm using the "Release" build in Visual ...

« Previous12345678910 ... 12251226Next »Show All