Search

How to send synchronous requests with HttpClient in C#
By Tan Lee Published on Mar 06, 2025 234

In .NET 5 and above, the HttpClient Sync API methods Send() and ReadAsStream() provide a way to send HTTP requests synchronously, allowing you to avoid the complexities of async code (like sync-over-async)

Read more
How to encode and decode a base64 string in C#
By Tan Lee Published on Jan 31, 2024 568

In C#, you can encode and decode Base64 strings using the Convert class, which provides methods for encoding and decoding.

Read more
How to use named tuples in C#
By Tan Lee Published on Mar 05, 2025 165

Tuples allow you to store multiple values together, which can be useful for passing around related data.

Read more
How to deconstruct tuples in C#
By Tan Lee Published on Mar 05, 2025 151

Deconstructing a tuple allows you to assign its values to multiple variables simultaneously using the deconstruction assignment syntax.

Read more
How to sort a dictionary in C#
By Tan Lee Published on Mar 05, 2025 243

Dictionaries in C# are unordered collections where key-value pairs are not stored in any particular order. Sometimes, you might want to sort the dictionary by either its keys or values.

Read more
How to sort a list in C#
By Tan Lee Published on Mar 05, 2025 271

When you need to sort a list, you don't have to overcomplicate things.

Read more
How to Convert list to array in C#
By Tan Lee Published on Mar 05, 2025 210

The easiest way to convert a list to an array is by using the List.ToArray() method.

Read more
How to Convert an array to a list in C#
By Tan Lee Published on Mar 05, 2025 158

To convert an array to a list, the simplest and most efficient way is by using the ToList() Linq method:

Read more
How to Add Items to a List in C#
By Tan Lee Published on Mar 05, 2025 242

In C#, there are several methods available to add items to a list.

Read more
How to Read a text file line by line in C#
By Tan Lee Published on Mar 05, 2025 205

There are a couple of ways to read a text file line by line:

Read more
LinQ to XML Data in C#
By Tan Lee Published on Dec 25, 2024 374

In this tutorial, We will cover fundamental operations such as retrieving, inserting, updating, and deleting data in XML files using Linq in C#.

Read more
How to remove duplicates from a list in C#
By Tan Lee Published on Dec 25, 2024 502

Removing duplicates from a list is a common task in programming. The most efficient way to handle it is by iterating through the list and using a data structure that ensures uniqueness, such as a HashSet.

Read more
Calculating the Distance Between Two Coordinates in C#
By Tan Lee Published on Dec 21, 2024 688

Imagine you’re standing in the middle of Millennium Park in Chicago, looking for a cup of coffee.

Read more
How to Use regex capturing groups to extract data in C#
By Tan Lee Published on Dec 20, 2024 411

In regex, capturing groups allow you to extract and save portions of text for later use. These groups can either be unnamed and referenced by index, or they can be named for easier reference.

Read more
How to round up in Javascript
By Tan Lee Published on Dec 18, 2024 157

To round up a number in JavaScript, you can use the `Math.ceil()` function.

Read more
How to Set Up Dark Theme in SQL Server Management Studio
By Tan Lee Published on Dec 16, 2024 786

To enable the Dark Theme in SQL Server Management Studio (SSMS), follow these steps.

Read more
How to Upload Files Using C# ASP.NET FileUpload Control
By Tan Lee Published on Dec 15, 2024 572

To upload a file using the FileUpload control in ASP.NET with C#, follow these steps.

Read more
How to Insert Update Delete data in Database from DataGridView in C#
By Tan Lee Published on Jul 25, 2017 14.53K

To manage Insert, Update, and Delete operations in a SQL database using a DataGridView in a C# Windows Forms application built with the Metro Framework (Modern UI), follow these steps.

Read more
How to Insert Update Delete View data in SQL Server using 3 Tiers in C#
By Tan Lee Published on Jun 25, 2017 6.91K

Implementing Insert, Update, Delete, and View (CRUD operations) in SQL Server using the 3-tier architecture in C# involves dividing your application into three layers:

Read more
How to Insert Update Delete Select in SQL Server in C#
By Tan Lee Published on Jun 25, 2017 6.61K

To perform Insert, Update, Delete, and Select operations in SQL Server using Entity Framework Database First in C#, you can follow these steps.

Read more
How to fix 'Can not install nuget packages'
By Tan Lee Published on Jan 14, 2024 7.22K

The error you're encountering typically indicates that the DevExpress components you're trying to access cannot be found in the specified directory.

Read more
How to use CheckedComboBoxEdit with SearchControl in C#
By Tan Lee Published on Aug 30, 2024 639

Using CheckedComboBoxEdit with SearchControl in a C# application typically involves working with DevExpress components in a WinForms.

Read more
How to fix 'This CKEditor 4.22.1 version is not secure. Consider upgrading to the latest one, 4.24.0-lts'
By Tan Lee Published on Aug 04, 2024 822

To address the warning about CKEditor 4.22.1 being outdated and insecure, you can follow these steps.

Read more
How to Create a Material Design Login Form in C#
By Tan Lee Published on Jul 16, 2024 37.76K

Creating a Material Design login form using MaterialSkin for Windows Forms involves several steps to set up the necessary components, styles, and functionality.

Read more
How to Create a Phone Book in C#
By Tan Lee Published on Jul 16, 2024 13.11K

Creating a Phone Book, Telephone Diary application using datatable, dataset, read & write xml file in C# Windows Forms Application.

Read more
How to Drag and drop image from one PictureBox to another PictureBox in C#
By Tan Lee Published on May 20, 2024 10.83K

To implement drag and drop functionality between two PictureBox controls in a C# Windows Forms Application, you can follow these steps.

Read more
How to Send free SMS Message in C#
By Tan Lee Published on Jul 17, 2024 8.92K

To send free SMS messages using ipipi.com in a C# Windows Forms Application, you'll follow a similar approach to the one outlined earlier.

Read more
How to Embed YouTube Videos in C#
By Tan Lee Published on Jul 16, 2024 13.76K

To embed a Flash Player into a Windows Forms application in C#, you can use the Shockwave Flash Object COM component.

Read more
How to send SMS messages in C#
By Tan Lee Published on Jul 16, 2024 20.49K

To send SMS messages to mobile phones via the internet using the Vianett API in a C# Windows Forms Application, you'll need to follow these steps.

Read more
How to use ComboBox in C#
By Tan Lee Published on Jul 16, 2024 9.01K

In C#, a ComboBox is a commonly used control in Windows Forms applications for presenting a dropdown list of items to users, allowing them to select one or more options from the list.

Read more