How To

How to convert string into number in Javascript
11/26/2024 8:17:01 AM  35

In JavaScript, there are several ways to convert a string into a number.

How to disable Form Resize on Title Bar Double-Click in C#
11/26/2024 6:20:16 AM  51

To prevent the form from being resized or restored when a user double-clicks on the title bar (or when the title bar is clicked), you can use the WndProc method to intercept and handle Windows messages directly within your form.

How to Download Crystal Reports for Visual Studio 2022
11/23/2024 2:55:15 AM  1.13K

Crystal Report for Visual Studio 2022 was released on May 20, 2022. The Developer Edition is a 64-bit installer, it will not work if your operating system is 32-bit.

How to get unix timestamp in C#
11/23/2024 1:49:33 AM  408

In C#, you can get the Unix timestamp, which represents the number of seconds that have elapsed since January 1, 1970 (Unix epoch), in a couple of ways.

How to pass anonymous types as parameters in C#
11/22/2024 1:08:53 AM  59

In C#, you generally cannot pass anonymous types directly as parameters to methods because they do not have a named type that can be referenced outside their declaration scope.

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

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  556

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  626

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  78

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  26

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  77

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  148

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.