Search
Cannot convert null to type parameter 'T'
By Tan Lee Published on Dec 24, 2024 267
When working with generic methods in C#, you may encounter the following compiler error while trying to return null:
Read moreHow to Encrypt and Decrypt plain string using RC4 in C#
By Tan Lee Published on Mar 23, 2024 12.09K
Implementing the RC4 algorithm in a C# Windows Forms application involves creating the encryption and decryption functionality using the RC4 cipher.
Read moreHow to save files using SaveFileDialog in C#
By Tan Lee Published on Jul 12, 2017 8.24K
To save the contents of a RichTextBox using a SaveFileDialog in C#, you can follow these steps.
Read moreHow to Convert binary to text in C#
By Tan Lee Published on May 17, 2024 8.12K
Convert binary to text in C# Windows Forms Application by entering binary in TextBox, then pressing the convert button and displaying the result in TextBox control.
Read moreHow to Convert DateTime to Unix Timestamp in C#
By Tan Lee Published on Jul 11, 2024 2.09K
In .NET, you can easily convert DateTime object back to a Unix timestamp.
Read moreHow to Create a Metro GridView in C#
By Tan Lee Published on Jul 16, 2024 28.19K
To use Metro GridView with Metro Framework in a C# Windows Forms application, and then retrieve data from a SQL database using Entity Framework, follow these steps.
Read moreHow to handle nulls with SqlDataReader in C#
By Tan Lee Published on Dec 24, 2024 1.75K
The SqlDataReader object, which is used to read data from a SQL Server database, returns DBNull when it encounters a NULL in a column.
Read moreHow to Export DataTable to CSV using CsvHelper in C#
By Tan Lee Published on Jul 16, 2024 22.22K
Using CsvHelper to export a DataTable to a CSV file in C# is quite straightforward.
Read moreUpdate records with Dapper in C#
By Tan Lee Published on Jan 18, 2025 660
You can update records in a database using Dapper by leveraging the Execute() method along with an UPDATE statement.
Read moreHow to create a Barcode Scanner using Webcam in C#
By Tan Lee Published on Jul 05, 2024 19.69K
Creating a barcode scanner using a webcam in a C# Windows Forms application involves several steps, primarily involving the use of a barcode scanning library and accessing the webcam feed.
Read moreHow to Copy file with progress bar in C#
By Tan Lee Published on Feb 20, 2024 18.88K
Copying a file with a progress bar in a C# Windows Forms Application involves several steps, including setting up the UI components, handling the file copy operation, and updating the progress bar accordingly.
Read moreHow to create a Digital Clock in C#
By Tan Lee Published on Jun 25, 2017 6.51K
Creating a digital clock in C# using the Timer control involves using a Windows Forms application where the Timer control triggers an event that updates the time display on a label every second.
Read moreHow to Upload files with FTP in C#
By Tan Lee Published on Jun 20, 2017 16.57K
Uploading a file to an FTP server in a C# Windows Forms application involves using the System.Net namespace, particularly the FtpWebRequest class.
Read moreHow to upload file in ASP.NET MVC
By Tan Lee Published on Nov 13, 2024 368
To upload a file in an ASP.NET MVC application, you need to use the HttpPostedFileBase class to handle the file uploaded by the user.
Read moreHTTP Error 500.30 ASP.NET Core app failed to start
By Tan Lee Published on Nov 14, 2024 467
The "HTTP Error 500.30 - ASP.NET Core app failed to start" error typically indicates that there is an issue with your ASP.NET Core application that prevents it from starting up properly.
Read moreDownload AdventureWorks sample database for SQL Server
By Tan Lee Published on Nov 13, 2024 1.13K
These downloads include scripts and full database backups (.bak) files that allow you to install the AdventureWorks (OLTP) and AdventureWorksDW (data warehouse) sample databases on your SQL Server instance.
Read moreHow to upload Multiple File in ASP.NET MVC
By Tan Lee Published on Nov 13, 2024 254
In ASP.NET MVC, uploading multiple files can be done easily using the HttpPostedFileBase class.
Read moreLogin SignUp form using HTML CSS JS
By Tan Lee Published on Nov 11, 2024 433
A project using HTML, CSS, and JavaScript to create a Login and Signup form with API integration for registration via Google and Facebook.
Read moreInsert Update Delete and View data from SQL Database using ORM Lite in C#
By Tan Lee Published on Jun 08, 2017 6.73K
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 moreHow to fix 'Reference does not allow partially trusted callers' warnings in Visual Studio
By Tan Lee Published on Nov 11, 2024 385
This warning typically arises in situations where your project is running in a partial trust environment and the referenced assembly does not explicitly support being called in partial trust.
Read more