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);
            }
        }


Wednesday, 26 October 2016

Attaullah Khan

Introduction:
                     Attaullah Khan is Computer Engineering students at BUITEMS University Quetta Balochistan, He is working in Ocean Lord International Company as Software Developer, also team member of NextLinks company. Attaullah khan is working in a research with Computer Engineering Department Head, the research is basically about "How to stop getting spam emails". he has built more than 12 projects in .NET technology and has been working on .NET since 2 years.


                                                                  
                                 Picture of getting a CPD point after attending workshop