There are many people that have asked this question before on SO. For the last 3 hours I have sequentially tried each solution, and I get the same No executable found matching command "dotnet-ef" each time. I'd like to understand how to run the
I am way out of my league here so I am hoping someone can give me some advice on how to proceed. The long story is, I started with a jar which i ran an application called ikvm on to produce a .net library of my java classes. This was tested and works
If I have a WPF DataGrid that looks like this: <DataGrid x:Name="DataGridQ" AutoGenerateColumns="False" Grid.ColumnSpan="2"> <DataGrid.Resources> <Style TargetType="{x:Type DataGridRow}"> <Sette
In .NET, why does System.Math.Round(27.2351, 2, MidpointRounding.AwayFromZero) yield 27.24 instead of 27.23? Third digit is 5 so we check for 4th digit that is 1 less than 5 so result should be 27.23 Is there any way to get this result. See My proble
I am trying to capture number from my error message i.e something like this Command parameter[8] '' data value could not be converted for reasons Does anyone know how to get the number i.e. 8 from the following string using regular expression in c#?U
IDE: Visual Studio 2010 c# .net, Windows form application Hi, I am trying to remove the title bar in windows form application but I am not able to do it. ( Image is here): Title Bar: for removing it, I have tried this code: this.FormBorderStyle = Sys
I am trying to get my head around the changes in .NET 4.5, mainly the async features. To get my head around it I thought i would create a little app for archiving my massive photo collection. I learn best by doing so the application serves a double p
Is there any way to start a "Metro" app from a desktop app in .net?All Modern UI apps have a URL protocol associated with them which can be used to launch the app. You can find find the protocol for a specific app like this: Press Windows+R Type
After setting up remote debugging by following this post, we were able to locate and attach the Template Builder Process ID in Visual studio 2008. However we are still not able to debug. After creating a breakpoint, we attach the Template builder pro
The program has a form that pops up, you enter text in a few fields, then press close. Upon close the information entered is saved to a class newItem. When I press F5 to debug my program everything works fine. But when I run the executable from my de
I have been trying to do this for ages and having no joy whatsoever. I have a ribbon window of the following hierarchy: MainWindow MainContent (Tab Control) TabContainerViewModel ViewModelBase View model base has an ObservableCollection of tabs type
I have a remote SQL server. I want to make a local copy of all tables in this server. I don't care about the file format used locally, I'm looking for the fastest approach of getting the data from SQL server into the file. (note: server side backup i
Hi all I am having a requirement where I have to assign multiple keys and for that multiple keys I have to assign multiple values My requirement is as follows. I am having EmpID, PayYr and PayID for each employee. Assume I get my data as follows: Emp
For some reason, when certain bots visit the site, generating a url with the UrlHelper.Action method raises a null exception from System.Web.HttpServerVarsCollection.Get. I've done some debugging and the call stack originiates with an attempt to get
I have created several small applications that use my own DLL. The problem is, this DLL is constantly changing. My current solution to this problem is that I have a Setup project in the class library solution that creates and registers the DLL. In al
So, I have the same symptoms as described in C#/ASP.NET Oledb - MS Excel read "Unspecified error", but my my answer did not seem to fix it. Even always closing the OleDBConnection and disposing of it show the same symptoms. var connectionString
How would you execute a batch script within a GUI form in C# Could anyone provide a sample please?This example assumes a Windows Forms application with two text boxes (RunResults and Errors). // Remember to also add a using System.Diagnostics at the
I have an image created and saved manually as a file, which has a shape (e.g. a heart) that is transparent in the image, and the rest of the image has other colour. How to make the transparent shape with a specified colour programmatically in .NET, l
At the customers request (sadly) they want their request forms to prompt the local email client for the end user. They don't want to configure SMTP or anything on there end. I've run into an issue where it works on my local IIS, but doesn't seem to r
Say I have a method like this*: public T GetItem(int index) { if (index < 0 || index >= _privateList.Count) { throw new ArgumentOutOfRangeException("index"); } return _privateList[index]; } Would you include that throw or leave it out? On
I am testing how big a collection could be in .Net. Technically, any collection object could grows to the size of the physical memory. Then I tested the following code in a sever, which has 16GB memory, running Windows 2003 server and Visual Studio 2
Am working on a windows form application which uses interop to call a COM dll. I keep getting this error in the app method where the flow is like this: 1.Fetch about 7 records[R] from database 2.For each of this record,app instantiates a COM class us
We have a requirement in which we need to change change the words or phrases in the sentence while keeping its meaning intact. This application is going to provide suggestions to users who are involved in copy-writing. I don't know where should I sta
I would like to use the same code for copying files to an FTP server, and through USB. I've already written some code, which as of now uses functions from the System.IO namespace. To minimize code duplication, I've listed the functions which I need f
I have a collection of objects that's constantly changing, and I want to display some information about the contents every so often (my application is multi-threaded, and differently threads are constantly submitting requests to modify an object in t
Why only one overload throws this exception? Little update: I understand that there was a design decision made by framework developers. The question is really why that decision has been made, is there a related design pattern or whatever? Because if
I've recently tried to write something in F# making use of Microsoft Solver Foundation Services and while doing so I bumped into an issue: I had to express a (Term > Term) condition which in C# could simply be expressed as t1 > t2 and returns anothe
After seeing the Google Wave demos, I thought of incorporating "real-time" capabilities into my web application, where one user will be able to see text another user is typing in as it happens... Besides the soft real-time capabilities built int
I'm an Information Architect and JavaScript developer by trade nowadays, but recently I've been getting back into back-end coding again. And, whilst trying to get an HTML prototype integrated and working with our C#-based CMS, I've come to blows with
Drawing a parallelgram is nicely supported with Graphics.DrawImage: Bitmap destImage = new Bitmap(srcImage.Width, srcImage.Height); using (Graphics gr = new Graphics.FromImage(destImage)) { Point[] destPts = new Point[] { new PointF(x1, y1), new Poin