psubbiah93@gmail.com

Wednesday, 18 November 2015

Save Image to Application folder using OpenFileDialog


private void butBrowse_Click(object sender, EventArgs e)
        {
            OpenFileDialog ofD = new OpenFileDialog();
            if(ofD.ShowDialog()==DialogResult.OK)
            {
                Bitmap b=new Bitmap(ofD.FileName);
                lblAttachPath.Text = "TC :"+ofD.FileName.ToString();
                b.Save(Application.StartupPath+@"/tccopy/"+txtAdmissionNo.Text.ToString()+".jpg");
            }

        }
Unknown Web Developer

Hello! I am Subbiah P and this is my web technologies blog. My specialities are PHP, Asp.net, jQuery, and CMS web application development. I do accept paid work. Write to me to start working on your dream project . I am Working as Web developer in Peace Soft Technologies

No comments:

Post a Comment