csharp

Compute Square Root using Math.Sqrt in C#

Submitted by donbermoy on
In this tutorial, i will introduce another function in C# regarding the Math Functions, the Math.Sqrt(). Math.Sqrt() function provides to compute the square root of a number. So, now let's start this tutorial! 1. Let's start with creating a Windows Form Application for this tutorial by following the following steps in Microsoft Visual Studio 2010: Go to File, click New Project, and choose Windows Application. 2. Next, add two TextBoxes named TextBox1 and TextBox2 then leave it as blank.

Creating an Excel Application in C#

Submitted by donbermoy on
This is a tutorial wherein we will going to create a program that creates an excel application using C#. This tutorial uses Microsoft.Office.Interop.Excel in our Windows Form Application. 1. Let's start with creating a Windows Form Application in C# for this tutorial by following the following steps in Microsoft Visual Studio: Go to File, click New, and choose Windows Form Application. 2. Insert a Button control named Button1 in the form.

Textbox Validation using Error Provider in C#

Submitted by donbermoy on
Today in C#, I will teach you how to create a program that will validate an inputted textbox using ErrorProvider. In this tutorial, you will know what are the inputs you are going to put in the textbox and it will notify you whatever errors that you might encounter. Now, let's start this tutorial! 1. Let's start with creating a Windows Form Application in C# for this tutorial by following the following steps in Microsoft Visual Studio 2010: Go to File, click New Project, and choose Windows Application. 2.

Show Full Screen Mode in C#

Submitted by donbermoy on
Sometimes, because of exploring complicated codes we often forget the basics and the need of some functions. Take note that in C# there is no property such as show full screen, it is only maximizing the windowsstyle. In this tutorial, i will teach you how to create a program that can view full screen of your interface. Now, let's start this tutorial! 1.

CPU and RAM Meter in C#

Submitted by donbermoy on
This is a simple tutorial that will have a simple CPU and RAM meter by using C#. With this, you will be able to know the usage of your RAM and CPU. And it also calculates the percentage of its performance usage. Now, let's start this tutorial! 1. Let's start with creating a Windows Form Application in C# for this tutorial by following the following steps in Microsoft Visual Studio 2010: Go to File, click New Project, and choose Windows Application. 2. Add two PerformanceCounters, “pcCPU” and the other one is “pcRAM”.

Get Local Time by Zip Code using C#

Submitted by donbermoy on
Today in C#, I will teach you how to create a program that will get the local time if we input the country's zip code using C#. Now, let's start this tutorial! 1. Let's start with creating a Windows Form Application in C# for this tutorial by following the following steps in Microsoft Visual Studio 2010: Go to File, click New Project, and choose Windows Application. 2. Add 2 textbox named txtzipcode by inputting zip code and txtlocaltime to display the equivalent local time. Then insert one button named Button1.

Get Links and the Number of Links of a Website in C#

Submitted by donbermoy on
This is a simple tutorial on getting the links and the number of links of a website. With a link, users can navigate to another page, window, or Help topic; display a definition; initiate a command; or choose an option. A link is text or a graphic that indicates that it can be clicked, typically by being displayed using the visited or unvisited link system colors, examples are hyperlinks. 1.

Get List of Words in a TextBox using C#

Submitted by donbermoy on
In this tutorial, we will make a program that can get a list of words in a textbox or I mean retrieving each word one by one. Now, let's start this tutorial! 1. Let's start with creating a Windows Form Application in C# for this tutorial by following the following steps in Microsoft Visual Studio 2010: Go to File, click New Project, and choose Windows Application. 2. Next, add one textbox named TextBox1, button named Button1, and a lisview named ListView1.

Add a Button Control Pragrmatically in C#

Submitted by donbermoy on
Today in C#, we will create a program that will add a button pragmatically in windows form using C#. Now, let's start this tutorial! 1. Let's start with creating a Windows Form Application for this tutorial by following the following steps in Microsoft Visual Studio 2010: Go to File, click New Project, and choose Windows Application. 2. You don't have to design a button in your form because we will just code to have a button when loading the form. 3.

RadioButton Control in C#

Submitted by donbermoy on
The RadioButton component lets you force a user to make a single selection from a set of choices. This component must be used in a group of at least two RadioButton instances. Only one member of the group can be selected at any given time. Now, we will create a RadioButtons that when chose it will change the background color of the Form. So, now let's start this tutorial! 1.