Skip to content
Code for Devs
  • Home
  • JavaScript
  • WordPress
  • Excel
  • VBA
  • C#
  • Miscellaneous
  • Contact Us
  • Home
  • C#

Category: C#

How to Add Checkbox in DataGridView in C# Windows Form Application

April 26, 2025April 26, 2025 codef4devs

In this post, we will demo an example of adding a CheckBox Column in DataGridView control in Windows Form application using C#. In this example, you will get to know how to read selected rows […]

Leave a commentC#c# Examples, c# GUI Examples

C# Code to Run Command on Windows CMD

March 5, 2025March 5, 2025 codef4devs

Here is a simple C# code example to help you understand a way to automate the task of running command on CMD. It can be done using System.Diagnostics namespace. In below example, we are taking […]

Leave a commentC#c# Examples

10 Most Commonly Used String Methods in C#

February 28, 2025 codef4devs

Here in this post, you will get to know some most used C# string methods that everyone should be aware of while working on strings. These functions let you do manipulation on text in very […]

Leave a commentC#c# Examples

How to Use Left, Right, Mid Functions in C#

February 26, 2025February 28, 2025 codef4devs

We need Left, Right and Mid functions to get left most right most and mid n characters from a string. Generally, these functions are available in many other programming languages. But these functions are not […]

Leave a commentC#c# Examples

Get Distinct Records from Excel Column using C#

November 29, 2024December 24, 2024 codef4devs

You can get unique records from a excel column by using C#. For this, you need to use freeSpire.xls library which makes it easy to work on excel. Here is simple example that will help […]

Leave a commentC#c# Examples, Excel Automation, Excel c#

C# | Insert Text in New Line of Multiline Text Box by Button Click

November 26, 2024November 19, 2024 codef4devs

Here in this C# example, we will show how to add text in new line of Multiline text box. The text will be inserted in new line when user clicks on a button. For a […]

Leave a commentC#c# Examples, c# GUI Examples

Math.Truncate() in C# | Get Integral and Fractional Part of Number

November 22, 2024November 19, 2024 codef4devs

Truncate method of Math class is used to find integral part of a specified decimal number or double-precision floating-point number. You can find decimal part of a specified decimal number as well by using Truncate […]

Leave a commentC#c# Examples

Reading Multiline Textbox Line by Line in C# Windows Form Application

November 19, 2024 codef4devs

If you need to read a multiline TextBox line by line in C#, you need to use the Lines property of the TextBox. This property gives you an array of strings in return. Each element of this array corresponds to […]

Leave a commentC#c# Examples, c# GUI Examples

C# – Round Up or Round Down Number to Nearest Multiple of 10

November 15, 2024November 19, 2024 codef4devs

You are given a number, and you need to round it up or down to nearest multiple of 10, means round up or down to a number having 0 as last digit like as given […]

Leave a commentC#c# Examples

How to Set Excel Sheet Zoom Percentage using C#

November 8, 2024November 8, 2024 codef4devs

If you are automating excel using C# and Microsoft.Office.Interop and you need to set the zoom factor of excel sheet, first you need to activate that particular sheet then set the zoom percentage of ActiveWindow.Zoom […]

Leave a commentC#Excel, Excel Automation, Excel c#

Posts navigation

1 2 … 4 Next

Categories

  • C#
  • Excel
  • JavaScript
  • Miscellaneous
  • MySQL
  • Python
  • VBA
  • WordPress

Recent Posts

  • Python: Send Email from Outlook with Attachment
  • How to Add Checkbox in DataGridView in C# Windows Form Application
  • List of Free Classified Ads Posting Sites in the USA in 2025
  • C# Code to Run Command on Windows CMD
  • 10 Most Commonly Used String Methods in C#
Copyright © All rights reserved.