Search

How to use BackgroundWorker in C#
By Tan Lee Published on Jun 01, 2017 7.91K

The BackgroundWorker class in C# is used for running operations on a separate, dedicated thread in the background, allowing the UI to remain responsive.

Read more
Insert Update Delete and View data from SQL Database using ORM Lite in C#
By Tan Lee Published on Jun 08, 2017 6.74K

To perform Insert, Update, Delete, and View operations on student profile data using ORM Lite and Metro Framework in a C# Windows Forms application, you need to follow these steps.

Read more
How to call SQL Function in C#
By Tan Lee Published on Nov 10, 2024 666

To call an SQL function in C#, you'll typically interact with your database using ADO.NET, Entity Framework, or an ORM like Dapper.

Read more
How to check the size of HTTP resource in C#
By Tan Lee Published on Nov 10, 2024 391

You can check the size of an HTTP resource in C# by sending a HEAD request and inspecting the Content-Length header.

Read more
Multi-dimensional Array Size in C#
By Tan Lee Published on Nov 10, 2024 286

In C#, multi-dimensional arrays are arrays with more than one dimension. These arrays are declared using a comma-separated list of dimensions in square brackets.

Read more
How to empty Recycle Bin in C#
By Tan Lee Published on Nov 10, 2024 306

To empty the Recycle Bin in C#, you can use the SHEmptyRecycleBin function from the Windows Shell API.

Read more
DB NULL in C#
By Tan Lee Published on Nov 10, 2024 734

In C#, DBNull represents a database null value, which is different from null used for objects. DBNull is typically used to handle missing or undefined data in database-related operations.

Read more
Turkish i in C#
By Tan Lee Published on Nov 10, 2024 413

In C#, when working with string comparisons that involve Turkish characters, such as the Turkish lowercase 'i' (ı) and uppercase 'I' (İ), special attention is needed because of the unique way these characters behave in Turkish language and culture.

Read more
How to get current date and time from internet in C#
By Tan Lee Published on Nov 09, 2024 909

In C#, you can retrieve the current date and time from the internet by using a time server (also known as an NTP server) to sync with an accurate time source.

Read more
How to convert Bytes To Kilobytes in C#
By Tan Lee Published on Nov 09, 2024 361

To convert bytes to kilobytes (KB) in C#, you simply divide the number of bytes by 1024, since 1 kilobyte (KB) is equal to 1024 bytes.

Read more