Get locale specific directory in My documents?

I have my custom application that generates a directory in My documents path, after installation the application use...

C# search query with linq?

I am trying to make a suitable linq query to accomodate my search functionality. I have a table with the following ...

Sequence contains no elements??

I'm currently using a single query in two places to get a row from a database. BlogPost post = (from p in dc.BlogPo...

Find and extract a number from a string?

I have a requirement to find and extract a number contained within a string. For example, from these strings: stri...

How can I make a new color??

I have a form in C# that I want to enter as red, green and blue in 3 TextBox controls and make a new color. For exam...

Why doesn't C# support local static variables like C does??

Why doesn't C# have local static variables like C? I miss that!! ...

Selecting a row in DataGridView programmatically?

How can I select a particular range of rows in a DataGridView programmatically at runtime? ...

Replace Line Breaks in a String C#?

How can I replace Line Breaks within a string in C#? ...

The input is not a valid Base-64 string as it contains a non-base 64 character?

I have a REST service that reads a file and sends it to another console application after converting it to Byte arra...

Get IPv4 addresses from Dns.GetHostEntry()?

I've got some code here that works great on IPv4 machines, but on our build server (an IPv6) it fails. In a nutshel...

Visual studio equivalent of java System.out?

What do I use in Visual Studio (C#) to perform the equivalent of Java's System.out.println( /*stuff*/ ) ? Does the ...

How do you convert epoch time in C#??

How do you convert Unix epoch time into real time in C#? (Epoch beginning 1/1/1970) ...

Call parent method from child class c#?

This is a slightly different question from previous answers I have seen or I am not getting it. I have a parent clas...

How to update an object in a List<> in C#?

I have a List&lt;&gt; of custom objects. I need to find an object in this list by some property which is unique and...

Adding a newline into a string in C#?

I have a string. string strToProcess = "[email protected]@[email protected]@[email protected]"; I need to add...