Medical Store Management System Part 4 ( Hindi / Urdu ) Csharp Visual Studio 2012 Free Source Code




Medical Store Management System Part 2  ( Hindi / Urdu ) Csharp Visual Studio 2012 Free Source Code

Namaskar Dosto ,

Me Aap Sabhi ka Khub Khub Swagat Karta hu Mere Channel me Jiska Nam He " AMIN SATI "

Dosto is Video me . Mene AApko Medical Store Management Software kese banate he C# Visual Studio 2012 Uske Bareme Samjaya He. Me Ek Ek Topics ke Bareme AApko Samjata Rahunga .
Iss Video me mene AApko Customer Master Ke Record Ko Kese Update Karte he vo bhi Datagridview me jo show ho rahe he use. Uske bare me Step by Step Samjaya he.

Vo bhi Bahot Easily AAp Samaj Sakenge Kyunki Mene Hindi me Pura Video Banaya he.

Ye Hamara Medical Store Maangement System ka Dusra Video He .

Next video me......
Me AApko Ek Class Kese Create Karte he or Uss Class me hum 3 Method Likhenge Delete update and insert
Datagridview Display Record or Un ka hum Direct hamare full project me use karenge taki hume bar bar sab form e Method Likhni na Pade




To Bane Rahiye Mere Sath Or Dekhte Rahi.

Dosto Agar AApko meri Ye Video Usefule Lage to Please Like and Share Jarur kijiyega me AAp Sabhi ke Liye Esehi Video Banata Rahunga

Dosto Channel ko Subscribe Karna Na Bhule...


Thank You for Watching my Video.

Free Download Source Code


// For Select Record ID
        int r;
        int R_ID;
        string F_CODE = "";
        Connectivity_Class cn = new Connectivity_Class();

  private void btn_update_Click(object sender, EventArgs e)
        {
            R_ID =int.Parse (dgw_view.Rows [r].Cells [0].Value.ToString ());
            F_CODE = dgw_view.Rows[r].Cells[0].Value.ToString();
            txt_name.Text = dgw_view.Rows[r].Cells[1].Value.ToString();
            txt_address.Text = dgw_view.Rows[r].Cells[2].Value.ToString();
            txt_city.Text = dgw_view.Rows[r].Cells[3].Value.ToString();
            txt_mobile.Text = dgw_view.Rows[r].Cells[4].Value.ToString();
            txt_phone.Text = dgw_view.Rows[r].Cells[5].Value.ToString();
            btn_save.Text = "&Update";
            txt_name.Focus();


        }

  private void dgw_view_RowEnter(object sender, DataGridViewCellEventArgs e)
        {
            r = e.RowIndex;
        }


private void savedata()
        {
            string strquery="";
           
            if (btn_save.Text == "&Update")
            {
                strquery = "update tbl_customer set Cust_Name='" + txt_name.Text + "' , Cust_Address='"                + txt_address.Text + "' , Cust_City='" + txt_city.Text + "' , Cust_Mobile='" +                                       txt_mobile.Text + "' , Cust_Phone='" + txt_phone.Text + "' where Cust_ID=" + F_CODE +                 "";
                cn.IUD_Method(strquery); 
                btn_save.Text = "&Save";

                MessageBox.Show("Record Has been Update Successfully", "Update",                                                 MessageBoxButtons.OK, MessageBoxIcon.Information);
         
            }
            else
            {
                strquery = "insert into tbl_customer (Cust_Name , Cust_Address , Cust_City , Cust_Mobile                , Cust_Phone ) Values ('" + txt_name.Text.ToUpper() + "','" + txt_address.Text + "','" +                         txt_city.Text + "','" + txt_mobile.Text + "','" + txt_phone.Text + "')";
                cn.IUD_Method(strquery);
                MessageBox.Show("Record Has been Saved Successfully", "Save",                                                       MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
             cleartext();
            string str = "select * from tbl_customer";
            datarecord(str);
        
        }

Post a Comment

2 Comments