How To

How to prevent flicker in WinForms
By Tan Lee Published on Dec 27, 2024 305

If you often update the content of a WinForms Control, you may encounter a flickering problem, particularly when the data being displayed is large.

How to Remove Response Headers in IIS
By Tan Lee Published on Nov 09, 2024 491

To remove or modify ASP.NET server headers such as X-AspNet-Version and X-Powered-By, you can use different methods depending on your version of ASP.NET and which headers you want to modify.

Pass reference type using "ref"
By Tan Lee Published on Dec 27, 2024 224

When working with reference types in C#, passing them to methods allows modifications to the object’s properties within the method.

Cannot Initialize a By-Reference Variable with a Value
By Tan Lee Published on Dec 27, 2024 225

With the introduction of "ref return" in C# 7.0, developers can now return a reference to a value from a method.

Curly Braces in string.Format in C#
By Tan Lee Published on Nov 10, 2024 362

In C#, if you want to use curly braces ({ and }) as literal characters within a string.Format() method, you need to escape them by doubling the braces.

C# Union
By Tan Lee Published on Dec 27, 2024 254

In C/C++, a union is a user-defined type where all its members share the same memory location.

How to check the size of HTTP resource in C#
By Tan Lee Published on Dec 27, 2024 273

The HTTP HEAD command is useful when we want to know the size of a resource, like a video or an image, before downloading it.

How to check internet connectivity in C#
By Tan Lee Published on Dec 27, 2024 304

The method NetworkInterface.GetIsNetworkAvailable() in .NET, available since version 2.0, checks if a network connection is available.

How to convert long date to short date in C#
By Tan Lee Published on Nov 10, 2024 414

In C#, you can convert a long date string (e.g., "Monday, October 10, 2024") to a short date string (e.g., "10/10/2024") using the DateTime class and its formatting capabilities.

How to compress dataset to byte array in C#
By Tan Lee Published on Aug 29, 2024 533

To compress a dataset into a byte array in C#, you can use various compression libraries available in .NET.

Remote WebDriver in C#
By Tan Lee Published on Dec 27, 2024 368

Selenium allows you to automate browsers on remote computers when a Selenium Grid is set up.

Error 0x80004005 when starting ASP.NET .NET Core 2.0 in IIS
By Tan Lee Published on Dec 26, 2024 280

The error code 0x80004005 is a general error code that typically points to a problem with file access or missing files.