private void btSelectImage_Click(object sender, EventArgs e) { FrmResources dlg = new FrmResources(); dlg.StartPosition = FormStartPosition.CenterScreen; if (dlg.ShowDialog() == DialogResult.OK) { //MessageBox.Show(dlg.SelectedImageKey); Tico.Text = dlg.SelectedImageKey; dataClass.ProgIco = dlg.SelectedImageKey; } }
private void simpleButton3_Click(object sender, EventArgs e) { FrmResources dlg = new FrmResources(); dlg.StartPosition = FormStartPosition.CenterScreen; if (dlg.ShowDialog() == DialogResult.OK) { //MessageBox.Show(dlg.SelectedImageKey); Tico.Text = dlg.SelectedImageKey; dataClass.ProgIco = dlg.SelectedImageKey; } }