How To

How to decrypt a file in C#
6/11/2024 1:50:35 AM  198

In C#, you can encrypt and decrypt a file using the FileInfo class from the System.IO namespace.

How to use File.OpenWrite in C#
6/11/2024 1:49:29 AM  280

In C#, the File.OpenWrite method is used to open an existing file or create a new file for writing.

How to fix Using 'UseMvc' to configure MVC is not supported while using Endpoint Routing
6/10/2024 8:55:26 AM  418

How to solve the problem Using 'UseMvc' to configure MVC is not supported while using Endpoint Routing when changing ASP.NET Core 2.2 to 3.0

How to Increase upload file size in ASP.NET Core
6/10/2024 8:50:17 AM  295

To increase the upload file size in ASP.NET Core, you typically need to adjust settings in both your application code and your server configuration.

How to fix LoginPath not working in ASP.NET Core
6/10/2024 8:05:12 AM  959

How to solve 'LoginPath not working in ASP.NET Core'.

How to return 401 instead of 302 in ASP.NET Core
6/10/2024 7:32:30 AM  345

Sometimes you add an [Authorize] attribute to your web API method in ASP.NET Core 2.0 and instead of returning 401, it returns 302.

How to Open password protected Word Document without software
6/8/2024 4:22:32 AM  191

Recovering your Word document lost password with VBA code.

How to hide the Console Application in C#
6/8/2024 3:07:47 AM  8.83K

To hide a console application in C#, you can utilize the ShowWindow function from the user32.dll library to hide the console window programmatically.

How to hide WinForm in C#
6/8/2024 3:07:23 AM  8.74K

In C#, you can hide a WinForm after it run by using the Hide() method of the form.

How to Download Crystal Reports for Visual Studio 2019
5/31/2024 9:22:28 AM  681

This post shows you how to download Crystal Reports for Visual Studio 2019.

How to implement simple Memory Cache for Web API
5/31/2024 9:17:56 AM  214

This post shows you How to implement memory cache for ASP.NET Web API in C#

How to drop table if exists in sql server
5/31/2024 8:43:42 AM  355

In SQL Server, you can drop a table if it exists by first checking if the table exists in the database, then dropping it if the existence check returns true.