Skip to main content

Posts

Showing posts from May, 2017

Code of the first window that we created

Guys, please note that most of the header files and functions would be automatically loaded when you double click on the controls/forms. Here, after double clicking on the Login button we find the following screen !! First of all we declare a variable accessible by all the functions. So we declare it before the form initialisation and the code is as follows:                                     public static String uname; First we need to know what the Login  button does. When the Login  button is clicked the code first checks if the given credentials are correct or not. So here we use a if else loop. So, inside the "private void btn_login(Object sender, EventArgs e)"  write the following code :  private void btn_login_Click(object sender, EventArgs e)         {             if (txt_uname.Text == "Martin" &...

My First .NET program

Ah.!! I know it's rude to ask if you know how to open the .NET Framework. But hey, there's an easy way to open. Here are the steps:       1. Press Windows_Button + R  to open the Run dialog box.       2. Type " devenv " and press enter. After opening the .NET framework the point is how to connect to the windows application. The steps are as follows :      1. Click on File  then on New then on Project .      2. Select "  Visual C# "      3. In Templates select "  Windows form application  "      4. Name accordingly      5. Specify the location and press OK. How to add a new Windows Form ( ie, form2 ) within the project :   1. Click View and then click on Solution Explorer   2. Right click on the project and click on Add and then on windows form .   3. By default Form2.cs name appears and click on Add button. ...

Introduction to .NET Framework

                                                          Windows    Programming             Desktop applications are of two types. They are:-     1. Character User Interface (CUI)     2.Graphical User Interface (GUI) 1. Character User Interface [ CUI ] Traditionally we were using Character User Interface. Lets say for example DOS, UNIX,... etc. These Character User Interfaces Suffered from various criticisms like :-           * Since we need to use commands in CUIs, so they are not user friendly.       * CUIs does not allow to navigate from one field to another. So to solve these problems, Microsoft.inc introduced its Graphical User Interface [GUI] based application with its Windows Operating System in the early 1990's. 2. Gra...