Search

Intersperse implementation in C#
By Tan Lee Published on Nov 09, 2024 240

In this post, I'll demonstrate how to implement an Intersperse method in C# as an extension method on the IEnumerable interface.

Read more
How to download DataTable in Excel format in C#
By Tan Lee Published on Nov 06, 2024 218

To download tabular data such as DataTable data in Excel CSV/TSV format in C#, you can follow these steps.

Read more
How to convert string array to string with delimiter in C#
By Tan Lee Published on Nov 06, 2024 361

To convert a string array into a single string with a delimiter in C#, you can use the string.Join method.

Read more
How to wipe a file completely in C#
By Tan Lee Published on Nov 05, 2024 376

To securely wipe a file in C# according to the HMG IS5 Baseline, you need to follow a procedure that goes beyond simple file deletion.

Read more
How to fade in fade out form in C#
By Tan Lee Published on Nov 05, 2024 406

To create a fade-in and fade-out effect for a form in C# Windows Forms, you can manipulate the Opacity property of the form.

Read more
How to create excel file in c# using dataset
By Tan Lee Published on Nov 05, 2024 610

To create an Excel file in C# using a DataSet, you can use libraries like EPPlus or ClosedXML for handling Excel file creation.

Read more
How to Determine If a Browser is Running in C#
By Tan Lee Published on Nov 04, 2024 606

To check for open browser instances in C#, you can use the System.Diagnostics namespace, which provides access to the processes running on your system.

Read more
How to use a Custom control in C#
By Tan Lee Published on Jul 25, 2017 5.76K

Creating a custom picture box with scrollbars in C# involves deriving a new control from Control and implementing the necessary functionality to handle scrolling.

Read more
How to Get value from another Form in C#
By Tan Lee Published on Jul 25, 2017 10.18K

To get a value from another form in a C# Windows Forms application, you typically use properties or methods in the target form to expose the data you need.

Read more
How to display custom string for enum value in C#
By Tan Lee Published on Oct 29, 2024 416

In C#, you can display a custom string for enum values by using the Description attribute from the System.ComponentModel namespace.

Read more