Sunday 15 October 2017

What are the main programming languages any student should learn? Why?

First find your interest?

What is your target?
  • Web Development
  • Desktop Development
1. If you select Web Development then you have two choice, you have to select one! (There are many more but i am talking about these two)
  • PHP + MySQL+xampp  Server
  • ASP.NET + SQL+IIS Server
if your background is from .NET then definitly you will select ASP.NET, and the database which you will use will be SQL, you can use MySQL as well.
If you choose PHP then you will use Xampp server and MySQL, you can also use SQL.
2) If you choose Desktop Development then you have multiple choices like C++, Java, C# Windows form.

But my suggestion is C# window form is best because when you learn C# window form, then easily you can learn Asp.NET with less affort.

Note: CSS3 + HTML5 + BootStrap+ Ajax + Jquerry can be used in PHP as well as in ASP.NET

Thursday 25 May 2017

How to show computer all drives names in C#

Please follow the following steps!


1) First open a new project in Visual Studio (any version)

2) Drag a button to your form from toolbox and name it what you want!, in my case i have assigned button4

3) Click on the button which you have dragged

4) Write the following code in button4_click event



  private void button4_Click(object sender, EventArgs e)
        {

            //Initialise an array 
            string[] drives = System.IO.Directory.GetLogicalDrives();

            foreach (string str in drives)
            {
               //show the drives names in MessageBox
                MessageBox.Show(str);
            }
        }