In this example, i’ll show you how to change image using ComboBox in C# Windows Form App. Step 1: Create a windows application and design the form as follows. Open Visual Studio ->File -> New Project ->Visual C#...
Tag - C# Windows Form Examples
Hide and Visible a CheckBox Programmatically
Checkbox Visible property value type is System.Boolean, so we can only assign true or false for this property value. The following c# example code demonstrate us how can we show or hide a checkbox control dynamically at run time...
Split a String to Key Value Pairs in C#
In this example, i’ll show you How to split a string to key value pairs in C# Windows Form Application. C# Code: C# private void button1_Click(object sender, EventArgs e) { //this section create a string variable. string...
Trim The Last Character of a String in C#
In this example, i’ll show you How to trim the last character of a string in C# Windows Form Application. C# Code: C# private void button1_Click(object sender, EventArgs e) { //this section create a string variable...
How to Compare Two Strings by Ignoring Case in C#
In this example, i’ll show you How to compare two strings by ignoring case in C# Windows Form Application. we can compare two specified string objects using String.Compare method. String.Compare() method returns an integer...
How to Reverse a String in C#
In this example,i’ll show you How to reverse a string in C# Form Application. C# Code: C# private void button1_Click(object sender, EventArgs e) { //this section create a string variable. string characters = textBox1.Text;...
Get the Text of Selected RadioButton in C#
The following tutorial will show How to get the text of selected radiobutton controls. A RadioButton control provides a round interface to select one option from a number of options. Radio buttons are usually placed in a group on...
Move Selected Item From ListBox to Another ListBox
In this example, we will create an C# Form example that transfer a data from a listbox to another listbox. we will also learn how to remove the copied data from “listbox1”. If listbox rows is not selected, a...
C# Create Countdown with Timer
I’ll show you how to make a countdown with C# and using the timer control. To do this, we create a new Windows Forms project and switch to the code view of the form. For this example, we need some global variables. You...