Top ".net" questions

Do NOT use for questions about .NET Core - use [.net-core] instead.

How to display a Windows Form in full screen on top of the taskbar?

I have a .net windows application that needs to run in full screen. When the application starts however the taskbar …

c# .net winforms fullscreen taskbar
C# int to byte[]

I need to convert an int to a byte[] one way of doing it is to use BitConverter.GetBytes(). But …

c# .net bit-manipulation nfs
Parse string to DateTime in C#

I have date and time in a string formatted like that one: "2011-03-21 13:26" //year-month-day hour:minute How can I …

c# .net string parsing datetime
Convert a list to a string in C#

How do I convert a list to a string in C#? When I execute toString on a List object, I …

c# .net string list
PowerShell script to return versions of .NET Framework on a machine?

What would a PowerShell script be to return versions of the .NET Framework on a machine? My first guess is …

.net powershell version
Iif equivalent in C#

Is there an IIf equivalent in C#? Or similar shortcut?

c# .net conditional-operator iif-function
How do I get the last day of a month?

How can I find the last day of the month in C#? For example, if I have the date 03/08/1980, how …

c# .net datetime
System.Timers.Timer vs System.Threading.Timer

I have been checking out some of the possible timers lately, and System.Threading.Timer and System.Timers.Timer are …

.net timer
Linq: GroupBy, Sum and Count

I have a collection of products public class Product { public Product() { } public string ProductCode {get; set;} public decimal Price {get; …

c# .net linq
How can I detect the encoding/codepage of a text file

In our application, we receive text files (.txt, .csv, etc.) from diverse sources. When reading, these files sometimes contain garbage, …

c# .net text encoding globalization