visual

open one sql express db in multiple projects

I would like access a sql express db in multiple projects, a dynamic data project to administrate the data and a console application which fetches the data from the db, is there an option to do this? or should I use a SQL CE for this kind of scenario? ...

Why is my C# application code not working with my GUI?

Ok so I am adding on to my last project, where I created a shark race. Everything ran smoothly, and then it got fancy. Here are the requirements: 1) Declare all of the instance variables to be public properties defined with get and set accessor methods along with corresponding private backing fields. 2) Remove the MyBet instance variabl...

Why are there sln, suo and csproj files?

I begin to use visual studio 10. After I'm done with C# program, I see that there are sln, and suo file in the project root directory, and csproj file in the subdirectory. What are those files for? I need to identify the files to put into git repository. Together with the source code/documents that I create, I guess those three files ...

Netbeans platform vs. Visual Studio Extensibility

Hi it could be that the word versus is too strong for my question but anyway here we go. I have used the Netbeans platform in the past and I was really impressed with it. I haven't tried anything however in VS (2008 my current edition). Does anyone have experience with VS on extensibility? Is it as powerful as Netbeans and can I build c...

Create instances of classes that populate forms in Visual Studio

Hi I want to instantiate classes that I have written in Visual Studio 2008 and then populate a listview with these instances which resides in a form that opens up from within Visual Studio. To give you an example let's say we have a class Employee within our solution. Using VS Extensibility I would like to open a form in VS that contain...

WCF Json service AuthenticationScheme problem

I'm trying to host a wcf json service on my localhost on my dev machine, but also want it available to other users on the network for testing purposes. My service works fine when running in cassini, however when running from a virtual folder, I'm getting the error IS specified authentication schemes 'IntegratedWindowsAuthentication,...

Restarting normal Threads

Let's say that what I want to do is to validate one million strings, and each validation takes a couple of seconds. My approach: I have an array of threads declared like this: Thread[] workers = new Thread[50]; I don't have all strings in an array, they are got through some calculations, then I don't have all of them when I start th...

C# Difference between Foreach and for (not performance)

Hi, Some time ago I read that foreach works with "copies" of objects and thus it can be used for information retrieval instead of its updating. I do not get it as it is entirely possible to loop through list of classes and change its field. Thanks! ...

Null reference on MVC 2 Server

I'm writing a MVC 2.0 app with VS2010. On my Windows 7 Ultimate 64bit machine it runs fine. On my laptop (Windows 7 Home Premium, 32bit) it is getting a null reference on Server when I call MapPath. public ActionResult Index() { ContentModel content = new ContentModel(); content.Content = ContentInterface.G...

SubSonic 3 Visual Studio Add-in

I'm look for a subsonic 3.0 Add-in tools for visual studio like what was provided for Subsonic 2. Any alternative tools. I find using the T4 templates annoying. thanks. ...

Is Fisual FoxPro/FoxWeb Compatible with Ajax Push Engine (APE) ?

I'm researching how to setup an Ajax Push Engine (APE) but my first question is if Visual FoxPro9/FoxWeb Server environment will work with an APE. Does anyone know? ...

View GridView contents in Visual Studio 2010 and/or debugger

Hello, I am trying to inspect the contents of a GridView on a postback to debug some issues with dynamic columns and controls. Is there an easy way to view the contents of a GridView in the VS 2010 debugger, similar to the DataSet Visualizer (mouse over a DataTable, click the magnifying glass)? I have clicked through all of the variou...

how do I cancel visual mode programmatically in vim

I'm running a bit of code in Vim and having a problem (I think) with not being in the correct mode. I'm trying to get the text between either '< >' or '[ ]' into a register. At point code starts below I know the cursor is between a pair of brackets, but I don't know what kind the brackets are: " put text in x reg if I'm in <> brac...

Visual studio 2010 Ultimate Web Test Concurrent Users

Hello, I am trying to do a performance test on an asp.net website. I have recorded a simple scenario with user login. I have created a data file containing 500 login ids and passwords. The application database also has this information. My intention is to run the test to analyze how the system behaves when 500 users tries to login and l...

Outlook 2007 - Create addin from .OTM file?

Hi, I created a custom toolbar and a VbaProject.otm in Outlook 2007 and now I'm wondering how I can actually use those to create an Add-in? I know I have to use Visual Studio to create and deploy the add-in, but how do I actually import the form, code behind and the toolbar to the add-in dll? ...

Content blured in Silverlight4 after making a rotation and a scale

Hy, I am making a rotation of 180 degree and after that a scale of -1 on X axis. This is applied to the main grid of the user control. In this grid i have a button and a stack panel with textBox. The problem is that after the animation is done the button and the textBox become blurred. If someone can help, i wait an answer. Thanks. ...

In vi/vim is there any way to make Visual Block Mode unconstrained by line endings?

In vi/vim is there any way to make Visual Block Mode unconstrained by line endings? ...

vs2010 .net 4.0 to .net 3.x

Hello ! I would like to know how can i transform a .NET 4.0 VS 2010 C# project intro a 3.x .NET version? I just made an app for someone and i don't think he has the .NET 4.0 platform installed . Any ideas? ...

How to use VS2010 query designer in a solution?

Well met! I'm missing something about VS2010... I want to create a solution that let's me use the visual query designer to build queries against an SQL server, as I can when I right click the server in Server Explorer and select New Query. However, I can't seem to save this sort of query. If I go into Solution Explorer, I can create a...

Visualizing a geometric problem with mathematica

I am trying to figure out a way to move two points, X and Y, independently of one another along the edges of an equilateral triangle with vertices A, B, and C. There are also some collision rules that need to be taken into account: (1) If X is at a vertex, say vertex A, then Y cannot be on A or on the edges adjacent to it. i.e., Y ca...