C#

C-Sharp

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.

View Source of a Website using C#

Submitted by donbermoy on
This is a simple tutorial in which we are going to create a program that views a source of a website using C#. So, 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 two TextBoxes named TextBox1 for inputting a URL from the site, and TextBox2 for viewing the page source of the site.

Validate Phone Number using C#

Submitted by donbermoy on
Today in C#, I will teach you how to create a program that will validate an inputted phone number using C#. 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 one TextBox named TextBox1 which will be used to input the phone number.

Display MAC Address using Local IP in C#

Submitted by donbermoy on
In this tutorial, i will teach you how to create a program that displays a MAC Address using Local IP in C#. We all know that a MAC (Media Access Control) address is a number that identifies the network adapter(s) installed on your computer. The address is composed of up to 6 pairs of characters, separated by colons. You may need to provide your MAC address to a router in order to successfully connect to a network. There are so many ways to find the MAC Address of your PC.

Load and Display Contents of RTF File in a RichTextBox in C#

Submitted by donbermoy on
In this tutorial, I will teach you how to create a program that will load and display the contents of an RTF File in a RichTextBox using VB.NET. RTF means Rich Text Format and is a text file format used by Microsoft products. RTF files support text style formatting, as well as images within the text. Now, let's start this tutorial! 1.

Get the Number of Occurences of a Text in a ListBox using C#

Submitted by donbermoy on
In this C# tutorial, we will create a program that can determine the most repeated string or text inputted that is displayed in the ListBox. 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.