Posts

Showing posts from January, 2014

File/Folder Handling in C#.net

Image
Create, Copy,  Move and Delete File/Folder in C#.net Create File or Folder: public class CreateFileOrFolder {     static void Main()     {         // Specify a name for your top-level folder.          string folderName = @"c:\Top-Level Folder";         // To create a string that specifies the path to a subfolder under your           // top-level folder, add a name for the subfolder to folderName.          string pathString = System.IO.Path.Combine(folderName, "SubFolder");         // You can write out the path name directly instead of using the Combine          // method. Combine just makes the process easier.          string pathString2 = @"c:\Top-Level Folder\SubFolder2";         // You can extend the depth of your path if...

Select Insert update and delete into SQL SERVERdatabase using C#.net

Insert data into database:   string constring = @"Data Source=Servername;Initial Catalog=databasename;Integrated Security=True";         string a=TextBox1.Text;         string b = TextBox2.Text;         SqlConnection conn = new SqlConnection(constring);         string query= "INSERT INTO t1 (c1,c2)" + " values('" + a + "','" + b+ "')";         SqlCommand sqlCmd = new SqlCommand( query, conn);         conn.Open();         sqlCmd.ExecuteNonQuery() ;         conn.Close(); Select data from database and show into Datagridview: SqlConnection con = new SqlConnection(constring);             //Open database connection to connect to SQL Server             con.Open();             //Data table is used t...

About me

Image
     Hafiz Muhammad Umar Hayat Software Engineer in The IT Best Solutions Lecturer Computer Science in  AIMS College Lahore(VU PLHR-25) The Unique Institute Renala Khurd Developing Softwares in Android Studio : Track my Budget Smart Math – Android App Hotel Reservation Mobile App Smart School System Mobile App for Students/Parents Online Resort Booking App Hotel Reservation Mobile App Tools and language:        Android Studio , Java XML OCR, SSQLite Developed Softwares : Face Recognition based attendance system, AI based School Result System, Computer Hardware Information System, Keyboard Testing Utility, Time Management Software, CPU Monitor, Lyrics Master ,Urdu Stemmer, Multi version Data ware house, Offline Website Downloader, Energy Consumption Calculato , Survey Builder, Real Time Financial Data ware houseHospital Management system (DWH),  Smart Dat...