if (DialogResult.OK == ofdLoadFromHDD.ShowDialog()) { string[] strArray = ofdLoadFromHDD.FileNames; int count = strArray.Count(); DynamicGroupBox objDGB = new DynamicGroupBox(scrolledValue); GroupBox gB = new GroupBox(); try { for (int i = 0; i < count; i++) { Bitmap bmp = (Bitmap)Image.FromFile(strArray[i]); CommonInformation.SCANNING_NUMBER++; objCommonUtility.replaceImageIntoDB(bmp, CommonInformation.SCANNING_NUMBER.ToString()); gB = objDGB.createGroupBox(bmp, CommonInformation.SCANNING_NUMBER, false); pnlImageContainer.Controls.Add(gB); } gB.Select(); } catch (Exception ex) { MessageBox.Show(ex.Message); CommonInformation.SCANNING_NUMBER--; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)