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");
}
}
No comments:
Post a Comment