Category Archives: C#
How to Add and Remove Items in C# Listbox
Create a C# program that allows the user to add and remove items in a listbox control.
About the program
We will first define what a listbox control is.
A listbox is a graphical control that displays the list of items and allows you to select an item from the list.
This tutorial will teach us on how to add, remove, load and clear items from the listbox. The program will allow you to enter a string, a name to be specific and add or save it in the listbox, the listbox will display all the names added by the user. You can also select an item you want to remove or delete from the list.
Create a program in C# that will ask the user to enter a value in dollar and the program has an option for the user to select whether to convert the dollar into peso, rupee or euro.
This tutorial in c# will demonstrate the four types of loop; do while loop, while loop, foreach loop and for loop.
This is a gui program (graphical user interface) with windows form, buttons and other graphical controls.
A button is the most common graphical control in any programming languages. It is a control the user can click to provide input to an application.
In this simple tutorial, we will learn how to open a messagebox when a user clicks a button, change the text or caption of the button in runtime, disable the button (user cannot click or use the button) and hide or make the button invisible.
Create a gui (graphical user interface) program in c# that will allow the user to enter two numbers and choose what operation to use (addition, subtraction, division or multiplication), the program will then perform the operation selected by the user.
We will create a program that will allow the user what mathematical operator to use. Based on that selection the program will compute and display the result.
Create a program in C# that utilizes if else if statement.
We will create a simple program in c# that will allow the user to enter its grade in the textbox. The user will then click the button to determine the equivalent of that grade in letters.
Ex: the grade is 96, and the value or mark of that grade is A.
The program will determine the value of your grade using the if else if statement.
We will be using Window Form Application in C#. It is used to develop a graphical user interface.
Create a C# program that will allow the user to enter two strings and then the program will combine those strings to form a new one.
We will use the plus sign (+) to combine two strings to form a new string. This tutorial will teach us to concatenate two strings in two format; the gui and the console format.
GUI means with the use of graphical interface such as button, form, etc.
Console is like command prompt with command line interfaces.
Write a program in c# that will display Hello World in a form of a message box, in a caption or text of the button, label and even in the text or caption of the another form.
We will create a step by step tutorial on how to display Hello World in different styles using the Windows Form Application in C#, Windows Form Application will allow us to develop an application with GUI or Graphical User Interface.
Getting Started with C#
C# (pronounced as C Sharp) is one of the programming language developed by Microsoft that is implemented in .Net Framework so therefore you must install the .Net Framework on your unit to run the applications written in C#.
- C# is also an object oriented programming that supports all key object oriented concepts such as Polymorphism, Inheritance and Encapsulation (PIE).
- Its development team is led by Anders Hejlsberg.
- The programming language C# derives from C and C++
- The latest stable released of C#.5.0 was on August 15, 2012.
- The same with other .Net Programming Languages there are two main editors for development of C#: the latest version of Visual Studio which is the paid version, Microsoft Visual Studio 2013 and the free of cost the Visual Studio Express Edition 2013