How To
How to Custom icon for ClickOnce application in 'Add or Remove Programs'
11/11/2024 2:49:48 AM 502
To change the icon that appears for your ClickOnce application in Add or Remove Programs, follow these steps.
How to fix "The "GenerateResource" task failed unexpectedly"
11/10/2024 11:14:35 PM 357
The error "The 'GenerateResource' task failed unexpectedly" in Visual Studio typically occurs when there is an issue with the resource generation process, usually related to embedded resources or .resx files.
How to restart program in C#
11/10/2024 1:03:19 PM 470
To restart a program in C#, you can achieve it by launching a new instance of the program and exiting the current instance.
How to call SQL Function in C#
11/10/2024 11:44:24 AM 336
To call an SQL function in C#, you'll typically interact with your database using ADO.NET, Entity Framework, or an ORM like Dapper.
How to convert GUID to Integer in C#
11/10/2024 11:32:35 AM 418
Converting a GUID to an integer in C# isn't a straightforward process because a GUID is a 128-bit value, while an integer in C# is only 32-bits.
How to check the size of HTTP resource in C#
11/10/2024 2:51:35 AM 237
You can check the size of an HTTP resource in C# by sending a HEAD request and inspecting the Content-Length header.
Multi-dimensional Array Size in C#
11/10/2024 2:26:30 AM 170
In C#, multi-dimensional arrays are arrays with more than one dimension. These arrays are declared using a comma-separated list of dimensions in square brackets.
How to empty Recycle Bin in C#
11/10/2024 2:16:07 AM 186
To empty the Recycle Bin in C#, you can use the SHEmptyRecycleBin function from the Windows Shell API.
DB NULL in C#
11/10/2024 2:12:02 AM 451
In C#, DBNull represents a database null value, which is different from null used for objects. DBNull is typically used to handle missing or undefined data in database-related operations.
How to use Identity column in EF7
11/10/2024 1:58:52 AM 132
In Entity Framework 7 (EF7), the concept of an "Identity" column is typically handled through migrations and the use of the ValueGeneratedOnAdd() method in the Fluent API or the Key attribute in your model class.
Turkish i in C#
11/10/2024 1:51:06 AM 254
In C#, when working with string comparisons that involve Turkish characters, such as the Turkish lowercase 'i' (ı) and uppercase 'I' (İ), special attention is needed because of the unique way these characters behave in Turkish language and culture.
How to allow HTML string in ASP.NET MVC
11/10/2024 1:40:45 AM 236
In ASP.NET MVC, HTML strings are considered dangerous because they can contain malicious code, such as JavaScript, that can lead to Cross-Site Scripting (XSS) attacks.