Creating simple program to add, remove and clear items from a ListBox in C#. Today, we will do a program to add, change, remove and clear items from a list box. We will use a text box for adding and changing items in list box. We...
Tag - C# Windows Form Application Examples
Create a Chess Board using C# Windows Forms
In this example, I’ll show you How to create a chess board using Windows Form App. C# Code: C# using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using...
Create A Dice Roller App In C#
In this example,i’ll show you How to create a Dice Roller Application in C# using ImageList . Step 1: Create a windows application and design the form as follows. Open Visual Studio ->File -> New Project ->Visual...
Database Exploration with C# and SQL Server
This is a easy way to explore the items from database.In this Program 3 Modules having: module 1: Select all database name and load into combo box.module 2: Select all Table name from...
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...