How To

How to search for files in folder in C#
11/21/2024 2:13:59 AM  15

To search for files in a folder in C#, you can use the Directory.GetFiles method from the System.IO namespace.

How to convert varchar to uniqueidentifier in SQL Server
11/21/2024 1:53:31 AM  419

To convert a varchar to a uniqueidentifier in SQL Server, you can use the CAST or CONVERT function.

How to get data attribute value for selected option
11/21/2024 1:50:54 AM  397

To get the value of a data attribute for the selected option in a dropdown using jQuery, you can use the data() method along with the :selected selector.

How to get int value from enum in C#
11/20/2024 7:33:34 AM  12

In C#, you can get the integer value of an enum by using a simple type cast.

Handling disk full errors when copying files in C#
11/20/2024 7:20:51 AM  5

You can use PInvoke to call the GetDiskFreeSpaceEx function from the Windows kernel to check the available disk space on both local and network drives.

How to create a search box in C# WinForms
11/20/2024 6:58:39 AM  11

Creating a search box for a Windows Forms application, similar to the one in the Windows 11.

How to add a resource as a bitmap to C# project in Visual Studio
11/20/2024 6:43:05 AM  38

Adding a bitmap or other resource to a C# project in Visual Studio 2022 involves a few steps, including embedding the resource and accessing it in your code.

How to get the color from a hexadecimal color code using .NET
11/20/2024 6:20:31 AM  43

To get the color from a hexadecimal color code in .NET, you can use the System.Drawing.ColorTranslator class or directly parse the value using methods provided by the .NET framework.

What's New in C# 13
11/19/2024 8:19:01 AM  50

C# 13, released with .NET 9, brings several new features designed to boost developer productivity and improve code efficiency.

How to read and write json file in c#
11/19/2024 7:44:13 AM  20

In C#, you can read and write JSON to a file using the System.Text.Json library.

How to convert string to JsonResult
11/19/2024 7:16:30 AM  10

In a typical ASP.NET MVC or Web API application, if you want to convert a string to a JsonResult, you can do so by creating a new JsonResult object and passing the string as the data.

How to Convert string to JSON in C#
11/19/2024 7:06:39 AM  13

You can convert a string to a JSON object in C# using the `JsonSerializer.Deserialize` method from the `System.Text.Json` namespace.