How to calculate FFT using NAudio in realtime (ASIO out)?

I am programming clone of guitar (violin) Hero as a final project for this school year. The idea is to take input ...

What is the difference between “windows application” and “windows forms application”?

I was trying to use a third-party component developed in C# in a VB.NET project. When I tried to add the component ...

How do I get the path of the assembly the code is in??

Is there a way to get the path for the assembly in which the current code resides? I do not want the path of the ca...

Displaying the build date?

I currently have an app displaying the build number in its title window. That's well and good except it means nothi...

How do you center your main window in WPF??

I have a WPF application and I need to know how to center the wain window programatically (not in XAML). I need to ...

LINQ: combining join and group by?

I have a query that combines a join and a group, but I have a problem. The query is like: var result = from p in P...

Save print screen in C#?

Bitmap bitmap = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScr...

Error consuming webservice, content type “application/xop+xml” does not match expected type “text/xml”?

I'm having a weird issue when consuming a webservice for a product that my company has bought. The product is calle...

Keeping ASP.NET Session Open / Alive?

Which is the easiest and most unobstrusive way to keep an ASP.NET session alive as long as the user has the browser ...

Unit testing a WCF service?

I'm designing an enterprise level web app that will have a Data layer + SQL database, a WCF REST web service layer t...

C# - Send HTML email with line breaks?

I'm attempting to send emails from my C# app using the System.Net.Mail.MailMessage class. For the body of the email,...

How To Change DataType of a DataColumn in a DataTable??

I have: DataTable Table = new DataTable; SqlConnection = new System.Data.SqlClient.SqlConnection("Data Source=" + S...

What is the difference between for and foreach??

What is the major difference between for and foreach loops? In which scenarios can we use for and not foreach and v...